squiggle/packages/website/docs/Api/Number.md

167 lines
1.4 KiB
Markdown
Raw Normal View History

2022-06-05 20:59:45 +00:00
---
2022-06-06 03:02:17 +00:00
sidebar_position: 8
2022-06-05 20:59:45 +00:00
title: Number
---
### ceil
```javascript
(number): number
```
### floor
```javascript
(number): number
```
### abs
```javascript
(number): number
```
### round
```javascript
(number): number
```
### max
```javascript
(list<number>): number
```
### maxBy
```javascript
(list<number>, fn(element)):number
```
### min
```javascript
(list<number>): number
```
### minBy
```javascript
(list<number>, fn(element)):number
```
### random
```javascript
2022-06-05 21:13:56 +00:00
number;
2022-06-05 20:59:45 +00:00
```
### randomInt
```javascript
2022-06-05 21:13:56 +00:00
number;
2022-06-05 20:59:45 +00:00
```
### mean
```javascript
(list<number>): number
```
### median
```javascript
(list<number>): number
```
### mode
```javascript
(list<number>): number
```
### std
```javascript
(list<number>): number
```
### variance
```javascript
(list<number>): number
```
### unaryMinus
```javascript
(number): number
```
### equal
```javascript
(number, number): boolean
```
### add
```javascript
(number, number): number
```
### sum
```javascript
(number, number): number
```
### multiply
```javascript
(number, number): number
```
### product
```javascript
(number, number): number
```
### subtract
```javascript
(number, number): number
```
### divide
```javascript
(number, number): number
```
### pow
```javascript
(number, number): number
```
### exp
```javascript
(number): number
```
### log
```javascript
(number, number=Math.e): number
```
### log10
```javascript
(number): number
2022-06-05 21:13:56 +00:00
```