File tree Expand file tree Collapse file tree 1 file changed +83
-1
lines changed
lib/node_modules/@stdlib/math/base/special/trunc2 Expand file tree Collapse file tree 1 file changed +83
-1
lines changed Original file line number Diff line number Diff line change 6767 " prevpow2" ,
6868 " nearest" ,
6969 " number"
70- ]
70+ ],
71+ "__stdlib__" : {
72+ "scaffold" : {
73+ "$schema" :
" math/[email protected] " ,
74+ "base_alias" : " trunc2" ,
75+ "alias" : " trunc2" ,
76+ "pkg_desc" : " round a numeric value to the nearest power of two toward zero" ,
77+ "desc" : " round a numeric value to the nearest power of two toward zero" ,
78+ "short_desc" : " " ,
79+ "parameters" : [
80+ {
81+ "name" : " x" ,
82+ "desc" : " input value" ,
83+ "type" : {
84+ "javascript" : " number" ,
85+ "jsdoc" : " number" ,
86+ "c" : " double" ,
87+ "dtype" : " float64"
88+ },
89+ "domain" : [
90+ {
91+ "min" : " -infinity" ,
92+ "max" : " infinity"
93+ }
94+ ],
95+ "rand" : {
96+ "prng" : " random/base/uniform" ,
97+ "parameters" : [
98+ -1000 ,
99+ 1000
100+ ]
101+ },
102+ "example_values" : [
103+ 5.6 ,
104+ 49 ,
105+ 0.7 ,
106+ -0.9 ,
107+ -42 ,
108+ 88 ,
109+ -3.2 ,
110+ 120 ,
111+ -15 ,
112+ 230 ,
113+ -375 ,
114+ 0 ,
115+ 9 ,
116+ -99 ,
117+ 100 ,
118+ -1000 ,
119+ 1500 ,
120+ -2500 ,
121+ 7 ,
122+ -8
123+ ]
124+ }
125+ ],
126+ "output_policy" : " real_floating_point_and_generic" ,
127+ "returns" : {
128+ "desc" : " rounded value" ,
129+ "type" : {
130+ "javascript" : " number" ,
131+ "jsdoc" : " number" ,
132+ "c" : " double" ,
133+ "dtype" : " float64"
134+ }
135+ },
136+ "keywords" : [
137+ " truncate" ,
138+ " trunc" ,
139+ " trunc2" ,
140+ " round" ,
141+ " floor" ,
142+ " ceil" ,
143+ " nextpow2" ,
144+ " prevpow2" ,
145+ " nearest" ,
146+ " number"
147+ ],
148+ "extra_keywords" : [
149+ " math.trunc"
150+ ]
151+ }
152+ }
71153}
You can’t perform that action at this time.
0 commit comments