Converting from Exponential Form

Mark Wieder mwieder at
Mon Jan 12 12:37:31 EST 2009


Monday, January 12, 2009, 7:49:10 AM, you wrote:

> I have the string "1.0139648E+9" and I'd like to convert it to:

> "1013964800"

> Any ideas on how I can easily do this? the top of my head...

function normalize pString
  set the itemDelimiter to "E"
  replace "." with "" in item 1 of pString
  return item 1 of pString & "00"
end normalize

-Mark Wieder
 mwieder at

More information about the Use-livecode mailing list