real( ) (Game Maker)

real()

( Game Maker 6.1, 7 )

real - convert a string to a real number

Description

rnumb = real ( str )

  • rnumb - the returned real number
  • str - the string to convert

real() converts a string into a real number.

Examples

my_number = "42";
converted_number = real(my_number);

Related Pages

  • is_real() - check to see if a value is a real number.
  • is_string() - check to see if a value is a string.
  • string() - convert a real number to a string.

Similar To

Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution 2.5 License.