target.InitNumeric

Description

Initializes a numeric value from a text representation of a number according to a provided format.

Syntax

Target.InitNumeric(text, decimals)

Parameters

string text - a string containing a numeric value

integer decimals - the number of decimal positions to be used for numeric initialization.

Return value

numeric - the numeric value initialized from the text using the specified format

Example

Sample code

InitNumeric( "12376", 2 ) will produce 123.76 as a numeric value.

See also

Platform Objects and Methods

target.InitDate

target.IsEmpty

Target Methods