Core Help Root: Objects: Float


.ceiling(float)
This method calculates the ceiling of the floating point value. The ceiling is the next largest integer, so the ceiling of 5.4 is 6.0.
.floor(float)
This method calculates the floor of the floating point value float. The floor is the next smallest integer, so the floor of 5.4 is 5.0.
.round(float)
This method returns the rounded off value of float to the nearest integral value.
.round_to(float, places)
This method rounds the value float off to the given number of places as specified by the argument places.
.fractional_part(float)
This method returns the fractional part of a floating point value. The result for 1.234 would be 0.234. The value will always be positive.
.to_integer(float)
This method returns the integral value of a floating point number.
.log(base, value)
Given a base, base, and a value, value, this method returns the log of the value in the given base.


Colors | Trie | List Library | has_text | mutex | Heap | Weather System | Math Library | Integer | Data Lib | Object Lib | Help Node | Code Lib | Generic Map | Scrabble | World Time | Time | Robot | Native Function Reference | Complex Number Library | Bytecode Docs | motd | Mail List | Float | Collective | libraries | social_ui


the Cold Dark