number()

Syntax:

number( Value )

Return:

The parameter converted to a number, including any decimal places. This is equivalent to parseFloat function.

Parameters:

Value - The Value is any valid expression, string or variable name. This parameter is required.

Remarks:

Usually used to convert strings to a number where a decimal fraction is involved. The function will ignore text which comes after the number. It then ensures that you can perform maths functions on the value instead of string concetanation.

image\Script_Button.jpgExamples