mirror of
https://github.com/zekexiao/pocketlang.git
synced 2025-02-06 20:50:55 +08:00
a83aa9438e
function keyword changed back to fn
30 lines
296 B
Markdown
30 lines
296 B
Markdown
|
|
# math
|
|
|
|
TODO: this page is incomplete.
|
|
|
|
#### math.floor
|
|
```ruby
|
|
floor(value:num) -> num
|
|
```
|
|
|
|
#### math.ceil
|
|
```ruby
|
|
ceil(value:num) -> num
|
|
```
|
|
|
|
#### math.pow
|
|
```ruby
|
|
pow(a:num, b:num) -> num
|
|
```
|
|
|
|
#### math.sqrt
|
|
```ruby
|
|
sqrt(value:num) -> num
|
|
```
|
|
|
|
#### math.abs
|
|
```ruby
|
|
abs(value:num) -> num
|
|
```
|