Re: [htmltmpl] How to Keep Trailing 0 in Outuput
Brought to you by:
samtregar
From: Tom K. <to...@tc...> - 2011-08-09 03:01:48
|
I believe that it has to do with the XML parser but I might be wrong. I done several apps with htmltmpl using formatted numbers and never had a problem but, it was with HTML files. Opening the output file with an text editor would confirm if it is the XML parser or the original code. Tom -----Original Message----- From: al...@vi... [mailto:al...@vi...] Sent: Monday, August 08, 2011 7:23 PM To: Tom Kopke Subject: Re: [htmltmpl] How to Keep Trailing 0 in Outuput I've never had a problem with the module changing the format before output. I suspect it's something in the code that populates the array that's evaluating it and removing the trailing zeros. - Alan Tom Kopke <to...@tc...> wrote: >I've heard of this happening in other situations too such as data from >SQL and Oracle. The ugly approach is to add a hard space to create a >string (i.e., something akin to and not just empty quotes with a >space) but, may or may not work. I seem to remember that formatting the >entire number, not just the decimal values did the trick and definitely >the preferred approach. Not sure it will work but not seeing all the >related code makes it impossible to know for sure. > >Tom > >-----Original Message----- >From: Roger Burton West [mailto:ro...@fi...] >Sent: Monday, August 08, 2011 12:07 PM >To: htm...@li... >Subject: Re: [htmltmpl] How to Keep Trailing 0 in Outuput > >On Mon, Aug 08, 2011 at 02:38:42PM +0000, Wei, Alice Ju-Hsuan wrote: > >>The first 5 displayed as it is above, but the 6th one was displayed as >4435.8. How can I keep the print out as it is on html-plate? Here is >what I have in the html-template call: > >There's nothing in HTML::Template that should mess around with values >in this way. Can you supply a minimal test case? (I.e. the fewest >possible lines of code that demonstrate the problem, including >everything that we need to reproduce it.) > >Roger > >----------------------------------------------------------------------- >----- >-- >BlackBerry® DevCon Americas, Oct. 18-20, San Francisco, CA The >must-attend event for mobile developers. Connect with experts. >Get tools for creating Super Apps. See the latest technologies. >Sessions, hands-on labs, demos & much more. Register early & save! >http://p.sf.net/sfu/rim-blackberry-1 >_______________________________________________ >Html-template-users mailing list >Htm...@li... >https://lists.sourceforge.net/lists/listinfo/html-template-users > > >----------------------------------------------------------------------- >------- uberSVN's rich system and user administration capabilities and >model configuration take the hassle out of deploying and managing >Subversion and the tools developers use with it. Learn more about >uberSVN and get a free download at: >http://p.sf.net/sfu/wandisco-dev2dev >_______________________________________________ >Html-template-users mailing list >Htm...@li... >https://lists.sourceforge.net/lists/listinfo/html-template-users |