johneastman / boomerang

An interpreted programming language written in Python
https://jeastman.pythonanywhere.com/
MIT License
0 stars 0 forks source link

Add `is_int` and `is_float` built-in methods #84

Closed johneastman closed 1 year ago

johneastman commented 1 year ago

Add methods for checking if a number is an integer or a float. It will return the result of Number.is_whole_number.

Number of arguments: 1 Accepted types: Number

One method can be used for both built-in functions.

johneastman commented 1 year ago

Instead of two separate methods, create one called is_whole_number.

johneastman commented 1 year ago

Commit: https://github.com/johneastman/boomerang/commit/1ff05a66fcf2435c60869bf9cfe6d80bcd403146