I'm trying to take this value 0.85 and turn it into 85, or 1.35 and
turn that into 135.
The values start off as 254.499999784 and 300, next is
#DecimalFormat(FTime/HRGoal)# and it comes out to 0.85.
One path I tried was replace, to remove the decimal but I was hoping
there was a parameter in DecimalFormat to move the decimal all the way
to right or better yet, just remove completely .. but keep the
displayed value?
Any ideas?
thnx
<cfset foo = decimalFormat(ftime/hrgoal)>
and in this case, 'foo' is 0.85.
if the number will always be using the decimalFormat() function, there will
always be 2 decimal places, which means you can simply multiply the value *
100.
<cfset foo = decimalFormat(ftime/hrgoal)>
<cfset whole_foo = foo * 100>
hth,
charlie
"Drew" <B...@comcast.net> wrote in message
news:vi96ov4sn9mc51fnk...@4ax.com...
In article <HUFgb.64$e86....@news.uswest.net>, cha...@spamcop.com says...
--
Cletus D. Lee
Bacchetta Giro
Lightning Voyager
http://www.clee.org
- Bellaire, TX USA -
That should remove anything this is not a number including decimal points.
Adam
"Drew" <B...@comcast.net> wrote in message
news:vi96ov4sn9mc51fnk...@4ax.com...
>
if you just want to remove the ".' try using the replace command.
"Drew" <B...@comcast.net> wrote in message
news:vi96ov4sn9mc51fnk...@4ax.com...
>
charlie
"Cletus Lee" <New...@clee.org> wrote in message
news:MPG.19eceaffb...@News.Individual.NET...
yes, there are many ways to solve this problem. Using regular expressions are probably the most
efficient. (wish I had thought of it)
--
Cletus D. Lee
Andy J
www.andyjarrett.co.uk
"Cletus Lee" <New...@clee.org> wrote in message
news:MPG.19ede965c...@News.Individual.NET...
--
Andy J
http://www.andyjarrett.co.uk
"Andy J" <awjarrett[at]hotmail[dot]com> wrote in message
news:vo8efna...@corp.supernews.com...