O'Reilly logo

JMP 12 Scripting Guide by SAS Institute

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Numbers and Strings
Numbers can be written as integers, decimal numbers, in scientific notation with an E preceding the power of ten, and as date-time values. A single period by itself is the missing numeric value.
For example, these are all numbers:
. 1 12 1.234 3E3 0.314159265E+1 1E-20
One or more characters placed within double quotation marks constitute a string. For example, these are all strings:
"Green" "Hello,\NWorld!" "54"
Notice that if a number is in quotation marks, it is a string, not a number. There are two functions you can use to change a number into a string or a string into a number.
Use Num() to convert a string into a number. For example:
Num("54");
54
Note: Num() cannot convert non-numeric characters, so it produces a ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required