is_real() (Game Maker)

( Game Maker 6.1, 7 )

is_real - returns true if its argument is a real number.

Description

bool = is_real ( test )

  • bool - returned true/false value
  • test - the value to test.

Examples

this_is_real = 42;
if(is_real(this_is_real)){
    room_caption = "It's a real number";
}else{
    room_caption = "It's not a real number";
}

Related Pages

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