Skip to main content

stripZeros

Type

handler

Summary

Removes any superfluous zeros and decimal places.

Syntax

stripZeros(<pString>)

Description

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

tNumber formatted as string

syntax.

Parameters

NameTypeDescription

pString

The string to remove zeros from

Examples

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