-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Expand file tree
/
Copy pathrepl.txt
More file actions
32 lines (27 loc) · 826 Bytes
/
repl.txt
File metadata and controls
32 lines (27 loc) · 826 Bytes
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
30
31
32
{{alias}}( x )
Converts a half-precision floating-point number to a unsigned 32-bit
integer.
Parameters
----------
x: float
Half-precision floating-point number.
Returns
-------
out: integer
Unsigned 32-bit integer.
Examples
--------
> var y = {{alias}}( {{alias:@stdlib/number/float64/base/to-float16}}( 4294967297.0 ) )
0
> y = {{alias}}( {{alias:@stdlib/number/float64/base/to-float16}}( 3.14 ) )
3
> y = {{alias}}( {{alias:@stdlib/number/float64/base/to-float16}}( -3.14 ) )
4294967293
> y = {{alias}}( {{alias:@stdlib/number/float64/base/to-float16}}( NaN ) )
0
> y = {{alias}}( {{alias:@stdlib/constants/float16/pinf}} )
0
> y = {{alias}}( {{alias:@stdlib/constants/float16/ninf}} )
0
See Also
--------