DescriptionInitializes a numeric value from a text representation of a number according to a provided format.SyntaxTarget.InitNumeric(text, decimals)Parameters
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 valueinteger decimals - the number of decimal positions to be used for numeric initialization.
Return valuenumeric - the numeric value initialized from the text using the specified formatExampleSample codeInitNumeric( "12376", 2 ) will produce 123.76 as a numeric value.See alsoPlatform Objects and Methodstarget.InitDatetarget.IsEmptyTarget Methods
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 Methodstarget.InitDatetarget.IsEmptyTarget Methods