Ask a Question related to Coldfusion Database Access, Design and Development.
-
bethj3 #1
Added decimal places
In my tables my number values look right, but when I use a query to to
subtractions, I'm getting slightly wrong numbers. For example, I have begin and
end values. If I enter 0.51 and 0.63, when they are subtracted I should get
0.12. Instead I'm getting values like and 0.1199998856 or 0.1200000048. I have
the field values set as Number and Single, but have tried a few other things.
Changing the decimal places shown, doesn't change the underlying value.
The only solution I can find is to use Currency for the Data Type instead of
Number, but this seems really strange. Anyone know why this is happening and
/or how to fix it?
Thanks!
bethj3 Guest
-
Rounding decimal places
What is the best and most acurate way to round a number to 2 decimal places. It has the be a correctly rounded number not just a mask.. eg: round... -
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... -
How to ensure 2 places to right of decimal
How can I make certain that decimal values print out 2 places to the right all the time when displaying them on a website coming from an Access... -
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... -
Dan Bracuk #2
Re: Added decimal places
Why don't you just use the numberformat function to display your answers? Details are in the cfml reference manual. If you don't have one, the internet does.
Dan Bracuk Guest



Reply With Quote

