Pop one item and transform it into a number (integer or floating point.) If a1 is already a number, it is simply pushed back on the stack.
For strings it works as you would expect (see the strtof(3C) manual pages).
For a user defined object, the method named valueOf()
is called. You can declare that function on your own objects to get this action to retrieve the value.
Comments
Post new comment