Scientific notation to text
Scientific notation to text
- Subject: Scientific notation to text
- From: Paul Skinner <email@hidden>
- Date: Mon, 14 May 2001 00:56:49 -0400
I'm working on a handler for converting numbers in scientific notation
to the non- notated version as text and it's all good. But...
set theNumber to 1.94055698299304E-4
set the theNumber to thenumber as text
-->"1.940556982993E-4"
This initial coercion causes a rounding at the twelfth decimal place. Is
this appropriate behavior for AppleScript? It seems odd that a coercion to
text would cause a math function to be performed on the argument.
I don't know the internal handling of these classes well enough to know
if I can work around this or not. Anyone have any ideas?
--
Paul Skinner