AT.add.trailing.zeros: AT.add.trailing.zeros

Description

Adds trailing zeros to a number and represent it in a string of fixed length.

Usage

1
AT.add.trailing.zeros( x, digits = 5)

Arguments

x

number

digits

length of resulting string.

Value

Character string with digits characters.

Examples

1
2
# Represent 99.1 as '99.100'
AT.add.trailing.zeros(x = 99.1, digits = 5)

Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.