File tree Expand file tree Collapse file tree 1 file changed +80
-2
lines changed
lib/node_modules/@stdlib/math/base/special/round-nearest-even Expand file tree Collapse file tree 1 file changed +80
-2
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @stdlib/math/base/special/round-nearest-even" ,
3
3
"version" : " 0.0.0" ,
4
- "description" : " Round a numeric value to the nearest integer with ties rounding to the nearest even integer." ,
4
+ "description" : " Round a double-precision floating-point number to the nearest integer value with ties rounding to the nearest even integer." ,
5
5
"license" : " Apache-2.0" ,
6
6
"author" : {
7
7
"name" : " The Stdlib Authors" ,
63
63
" integer" ,
64
64
" nearest" ,
65
65
" number"
66
- ]
66
+ ],
67
+ "__stdlib__" : {
68
+ "scaffold" : {
69
+ "$schema" :
" math/[email protected] " ,
70
+ "base_alias" : " round-nearest-even" ,
71
+ "alias" : " round-nearest-even" ,
72
+ "pkg_desc" : " round to the nearest integer with ties rounding to the nearest even integer" ,
73
+ "desc" : " rounds to the nearest integer with ties rounding to the nearest even integer" ,
74
+ "short_desc" : " rounds to nearest integer with ties to even" ,
75
+ "parameters" : [
76
+ {
77
+ "name" : " x" ,
78
+ "desc" : " input value" ,
79
+ "type" : {
80
+ "javascript" : " number" ,
81
+ "jsdoc" : " number" ,
82
+ "c" : " double" ,
83
+ "dtype" : " float64"
84
+ },
85
+ "domain" : [
86
+ {
87
+ "min" : " -infinity" ,
88
+ "max" : " infinity"
89
+ }
90
+ ],
91
+ "rand" : {
92
+ "prng" : " random/base/uniform" ,
93
+ "parameters" : [
94
+ -10 ,
95
+ 10
96
+ ]
97
+ },
98
+ "example_values" : [
99
+ 64 ,
100
+ 27 ,
101
+ 0 ,
102
+ 0.1 ,
103
+ -9 ,
104
+ 8 ,
105
+ -1 ,
106
+ 125 ,
107
+ -10.2 ,
108
+ 11.3 ,
109
+ -12.4 ,
110
+ 3.5 ,
111
+ -1.6 ,
112
+ 15.7 ,
113
+ -16 ,
114
+ 17.9 ,
115
+ -188 ,
116
+ 19.11 ,
117
+ -200 ,
118
+ 21.15
119
+ ]
120
+ }
121
+ ],
122
+ "output_policy" : " integer" ,
123
+ "returns" : {
124
+ "desc" : " function value" ,
125
+ "type" : {
126
+ "javascript" : " number" ,
127
+ "jsdoc" : " number" ,
128
+ "c" : " double" ,
129
+ "dtype" : " float64"
130
+ }
131
+ },
132
+ "keywords" : [
133
+ " round" ,
134
+ " round-nearest-even" ,
135
+ " round-nearest" ,
136
+ " integer" ,
137
+ " nearest" ,
138
+ " number"
139
+ ],
140
+ "extra_keywords" : [
141
+ " math.round"
142
+ ]
143
+ }
144
+ }
67
145
}
You can’t perform that action at this time.
0 commit comments