// Number Example
// Number returns the numeric value of a string
var s;
s = "3.145926";
NSB.Print "The numeric value of s is " & Number(s);
NSB.Print "The numeric value of TextBox1 is " & Number(TextBox1.value);
Number(number)
Number converts a string to a number. It works on floats and integers.
// Number Example
// Number returns the numeric value of a string
var s;
s = "3.145926";
NSB.Print "The numeric value of s is " & Number(s);
NSB.Print "The numeric value of TextBox1 is " & Number(TextBox1.value);
Rem Number Example
'Number returns the numeric value of a string
Dim s
s = "3.145926"
Print "The numeric value of s is " & Number(s)
Print "The numeric value of TextBox1 is " & Number(TextBox1.value)
The numeric value of s is 3.1415926 The numeric value of TextBox1 is 42