is_exact


is_exact(obj)
      

Return true if the object obj is an exact number, false otherwise. Raise an error is obj is not a valid number.

Examples:


is_exact(1)
// true

is_exact(-15/10)
// true

is_exact(3.01)
// false
      

Also see:

exact
is_number
is_inexact


Core Module Index | Contents