Ask a Question related to Coldfusion Database Access, Design and Development.
-
dsmith #1
Max number of decimal places in cfprocparam?
It appears that the maximum number of decimal places that cfprocparam will
return is 12, using this syntax:
<cfprocparam type="Out" cfsqltype="CF_SQL_FLOAT" variable="token_id"
null="No">
The 12th decimal place appears to be rounded, so for example, even though the
stored proc should be returning a value of:
0.72341148990357396
it is actually returning
0.723411489904
Is this the case? Is there anyway around it? the "scale" attribute seems to
make no difference. Thanks!
dsmith Guest
-
Format a number to any decimal places
Hi! I'm having a small problem to format a number to some decimal places and I'd be glad if someone could please help me solve this issue. e.g. I... -
To 2 decimal places
Folks, I know some of you here are extremely dynamic. I am working with a variable that is declared as a decimal. But I want to convert the... -
Limited the number of decimal places returned?
I've moved on from functions for the time being, and was playing with do some maths and date/time manipulation. Lets say I wanted to show the... -
Decimal places!
Hi fellow Director users!, I had a countdown timer (75 seconds) for a game, and I wanted to display the time taken to complete it, in a field. ... -
do not cut decimal places
Hi, following problem (oracle8): I want to insert a value with precision (#.##) in a number(10,2) column. It works but the values which end with... -
dsmith #2
Re: Max number of decimal places in cfprocparam?
Problem solved...
Even though cfoutput and cfdump both reported the same thing (that is, a
variable of 12 decimal places), if I used the following instead:
<cfqueryparam value="#token_id#" cfsqltype="CF_SQL_FLOAT">
the appropriate number of decimal places appeared. Very bizarre, but glad to
have it fixed.
dsmith Guest



Reply With Quote

