lval() and val()

Syntax
long lval( string_expr )
double val( string_expr )


Description
These convert a string expression that consists of digits to its numeric representation. 
lval() converts its argument to an integer. If the string contains a floating point number, the result is truncated. val() converts its argument to a floating point number. lval() is faster than val().


Return values
The specified string converted to a long or floating point number. Or 0 if the result of string_expr cannot be converted to a number.


Related Post:

People who read this post also read :



0 comments:

Post a Comment

Share

Twitter Delicious Facebook Digg Stumbleupon Favorites More