Floating Point

Thierry Douez th.douez at gmail.com
Fri Nov 27 13:12:11 EST 2015

You can try this:

put format( "%.2f", 42)



2015-11-27 18:49 GMT+01:00 Peter Haworth <pete at lcsql.com>:
> I'm working with a third party API that requires me to supply one of the
> parameter values in floating point notation.  The value will be a number
> keyed into an LC field.  Does LC have a built-in way to convert a number to
> floating point format?
> Pete
> lcSQL Software <http://www.lcsql.com>
> Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and
> SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode

Thierry Douez - http://sunny-tdz.com
sunnYrex - sunnYtext2speech - sunnYperl - sunnYmidi - sunnYmage

More information about the use-livecode mailing list