stripZeros

Typehandler
Dictionarylibrary.widgetutils
LibraryWidget Utilities
Syntax
stripZeros(<pString>)
Associationscom.livecode.library.widgetutils
Summary

Removes any superfluous zeros and decimal places.

Parameters
NameTypeDescription
pString

The string to remove zeros from

Example
log stripZeros("5.0000000")			-- logs 5
log stripZeros("5.432100")			-- logs 5.4321
Description

Use stripZeros to remove any superfluous zeros and decimal places from pString which have been added by the

tNumber formatted as string

syntax.