Skip to main content
Inspiring
February 19, 2009
Question

Math error

  • February 19, 2009
  • 1 reply
  • 614 views
Does anyone know why CF server would return 2.5E-007 from <cfset x = (0.0005^2)>? I don't quite get the E-007 part.
This topic has been closed for replies.

1 reply

Inspiring
February 19, 2009
Inkfast wrote:
> I don't quite get the E-007 part.

That is called "Scientific Notation" and is used for very small and very
large decimal numbers. the E-007 basically means move the decimal seven
places to the left. I.E. 2.5E-007 = 0.00000025

Alternatively for a large number you would move the decimal to the
right. I.E 2.5E+007 would equal 25,000,000.