File: integer.md

package info (click to toggle)
python-pyglm 2.8.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 6,008 kB
  • sloc: cpp: 53,029; python: 3,683; makefile: 7
file content (29 lines) | stat: -rw-r--r-- 1,505 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
[//]: # (generated using SlashBack 0.2.0)

  
# integer methods  
The following methods are all part of the **integer methods**\.  
Contains two different rounding methods\.  
## Table of contents  
  
* [**iround** function](#iround-function)  
* [**uround** function](#uround-function)  
  
### iround\(\) function  
#### <code>glm.<code>**iround**(**x**: *number*) -\> *int*</code></code>  
&emsp;&emsp;Returns a value equal to the nearest integer to ``` x ```\. The fraction ``` 0.5 ``` will round in a  
&emsp;&emsp;direction chosen by the implementation, presumably the direction that is fastest\.  
  
#### <code>glm.<code>**iround**(**x**: *vecN*) -\> *ivecN*</code></code>  
&emsp;&emsp;Returns a value equal to the nearest integer to ``` x ```\. The fraction ``` 0.5 ``` will round in a  
&emsp;&emsp;direction chosen by the implementation, presumably the direction that is fastest\.  
  
### uround\(\) function  
#### <code>glm.<code>**uround**(**x**: *number*) -\> *int*</code></code>  
&emsp;&emsp;Returns a value equal to the nearest integer to ``` x ```\. The fraction ``` 0.5 ``` will round in a  
&emsp;&emsp;direction chosen by the implementation, presumably the direction that is fastest\.  
  
#### <code>glm.<code>**uround**(**x**: *vecN*) -\> *uvecN*</code></code>  
&emsp;&emsp;Returns a value equal to the nearest integer to ``` x ```\. The fraction ``` 0.5 ``` will round in a  
&emsp;&emsp;direction chosen by the implementation, presumably the direction that is fastest\.