/macosx-10.10.1/JavaScriptCore-7600.1.17/tests/mozilla/ecma/Math/ |
H A D | 15.8.2.15.js | 24 ECMA Section: 15.8.2.15 Math.round(x) 39 Math.round( 3.5 ) == 4 40 Math.round( -3.5 ) == 3 42 - Math.round(x) == Math.floor( x + 0.5 ) 43 except if x = -0. in that case, Math.round(x) = -0 55 var TITLE = "Math.round(x)"; 69 array[item++] = new TestCase( SECTION, "Math.round.length", 1, Math.round.length ); 71 array[item++] = new TestCase( SECTION, "Math.round()", Number.NaN, Math.round() ); [all...] |
/macosx-10.10.1/ruby-106/ruby/test/ |
H A D | test_mathn.rb | 90 assert_equal( 3, ( 13/5).round) 91 assert_equal( 3, ( 5/2).round) 92 assert_equal( 2, ( 12/5).round) 93 assert_equal(-2, (-12/5).round) 94 assert_equal(-3, ( -5/2).round) 95 assert_equal(-3, (-13/5).round) 97 assert_equal( 3, ( 13/5).round(0)) 98 assert_equal( 3, ( 5/2).round(0)) 99 assert_equal( 2, ( 12/5).round(0)) 100 assert_equal(-2, (-12/5).round( [all...] |
/macosx-10.10.1/ntp-92/libntp/ |
H A D | tsftomsu.c | 10 int round 35 if (round && (val_uf & 0x80000000))
|
/macosx-10.10.1/ruby-106/ruby/test/ruby/ |
H A D | test_integer.rb | 188 assert_equal(11111, 11111.round) 189 assert_equal(Fixnum, 11111.round.class) 190 assert_equal(11111, 11111.round(0)) 191 assert_equal(Fixnum, 11111.round(0).class) 193 assert_equal(11111.0, 11111.round(1)) 194 assert_equal(Float, 11111.round(1).class) 195 assert_equal(11111.0, 11111.round(2)) 196 assert_equal(Float, 11111.round(2).class) 198 assert_equal(11110, 11111.round(-1)) 199 assert_equal(Fixnum, 11111.round( [all...] |
H A D | test_float.rb | 14 assert_equal(3, 2.6.round) 87 next if flt2 == flt2.round 358 assert_equal(2, 1.5.round) 363 assert_equal(2, 2.0.round) 368 assert_equal(-2, (-1.5).round) 373 assert_equal(-2, (-2.0).round) 379 assert_raise(FloatDomainError) { inf.round } 384 assert_equal(1.100, 1.111.round(1)) 385 assert_equal(1.110, 1.111.round(2)) 386 assert_equal(11110.0, 11111.1.round( [all...] |
/macosx-10.10.1/CPANInternal-159.1/Perl4-CoreLibs-0.003/lib/ |
H A D | bigfloat.pl | 42 # fround(NSTR, SCALE) return NSTR round to SCALE digits 43 # ffround(NSTR, SCALE) return NSTR round at SCALEth place 145 &norm(&round(&'bdiv($xm.('0' x $scale),$ym),&'babs($ym)), 151 # round int $q based on fraction $r/$base using $rnd_mode 152 sub round { #(int_str, int_str, int_str) return int_str 167 $q; # round down 170 # round up 175 # round the mantissa of $x to $scale digits 185 &norm(&round(substr($xm,0,$scale+1), 193 # round 149 sub round { #(int_str, int_str, int_str) return int_str subroutine [all...] |
/macosx-10.10.1/tcl-105/tcl_ext/tclx/tclx/library/ |
H A D | fmath.tcl | 21 sin sinh sqrt tan tanh fmod pow atan2 abs double int round 49 proc round x {uplevel 1 [list expr round($x)]} procedure
|
/macosx-10.10.1/ruby-106/ruby/test/bigdecimal/ |
H A D | test_bigdecimal.rb | 312 assert_equal(3, n2h.round) 313 assert_equal(4, n3h.round) 314 assert_equal(-3, m2h.round) 315 assert_equal(-4, m3h.round) 324 assert_equal(2, n2h.round) 325 assert_equal(3, n3h.round) 326 assert_equal(-2, m2h.round) 327 assert_equal(-3, m3h.round) 336 assert_equal(3, n2h.round) 337 assert_equal(4, n3h.round) [all...] |
/macosx-10.10.1/IOAudioFamily-200.6/PCMBlitterLib/ |
H A D | IOAudioBlitterLib.cpp | 55 double round = 128.0; local 56 double max32 = maxInt32 - 1.0 - round; 64 double f1 = src[0] * maxInt32 + round; 65 double f2 = src[1] * maxInt32 + round; 66 double f3 = src[2] * maxInt32 + round; 67 double f4 = src[3] * maxInt32 + round; 111 double f1 = *src++ * maxInt32 + round;
|
H A D | IOAudioBlitterLib.h | 83 /* Set the FPSCR to round to -Inf mode */ \ 95 /* in the integer unit. These two bits set to zero means round to nearest mode. */ \ 365 double round = mRound; local 366 double max32 = maxInt32 - 1.0 - round; 378 f1 = f1 * maxInt32 + round; 381 f2 = f2 * maxInt32 + round; 392 f3 = f3 * maxInt32 + round; 397 f4 = f4 * maxInt32 + round; 402 f1 = f1 * maxInt32 + round; 407 f2 = f2 * maxInt32 + round; [all...] |
/macosx-10.10.1/ksh-23/ksh/src/cmd/ksh93/sh/ |
H A D | streval.c | 58 #define round(x,size) (((x)+(size)-1)&~((size)-1)) macro 59 #define stakpush(v,val,type) ((((v)->offset=round(staktell(),pow2size(sizeof(type)))),\ 62 #define roundptr(ep,cp,type) (((unsigned char*)(ep))+round(cp-((unsigned char*)(ep)),pow2size(sizeof(type))))
|
/macosx-10.10.1/ICU-531.30/icuSources/test/intltest/ |
H A D | dcfmtest.h | 53 const UnicodeString &round,
|
H A D | dcfmtest.cpp | 381 const UnicodeString &round, // rounding mode 398 if (round=="ceiling") { 400 } else if (round=="floor") { 402 } else if (round=="down") { 404 } else if (round=="up") { 406 } else if (round=="halfeven") { 408 } else if (round=="halfdown") { 410 } else if (round=="halfup") { 412 } else if (round=="default") { 414 } else if (round 379 execFormatTest(int32_t lineNum, const UnicodeString &pattern, const UnicodeString &round, const UnicodeString &input, const UnicodeString &expected, EFormatInputType inType, UErrorCode &status) argument [all...] |
/macosx-10.10.1/ICU-531.30/icuSources/i18n/ |
H A D | decContext.c | 68 context->round=DEC_ROUND_HALF_UP; /* 0.5 rises */ 83 context->round=DEC_ROUND_HALF_EVEN; /* 0.5 to nearest even */ 94 context->round=DEC_ROUND_HALF_EVEN; /* 0.5 to nearest even */ 105 context->round=DEC_ROUND_HALF_EVEN; /* 0.5 to nearest even */ 129 return context->round; 188 context->round=newround;
|
/macosx-10.10.1/vim-55/src/ |
H A D | popupmnu.c | 282 int round; local 316 for (round = 1; round <= 3; ++round) 320 switch (round) 420 if (round > 1) 426 if (round == 3 427 || (round == 2 && pum_array[idx].pum_extra == NULL) 428 || (round == 1 && pum_array[idx].pum_kind == NULL
|
/macosx-10.10.1/WebInspectorUI-7600.1.17/UserInterface/Views/ |
H A D | ColorWheel.js | 186 this._crosshair.style.webkitTransform = "translate(" + Math.round(point.x) + "px, " + Math.round(point.y) + "px)"; 246 Math.round(rgb[0] * 255), 247 Math.round(rgb[1] * 255), 248 Math.round(rgb[2] * 255),
|
/macosx-10.10.1/ruby-106/ruby/lib/ |
H A D | mathn.rb | 79 if self < 0 && other.round != other 108 if self < 0 && other.round != other 317 if self < 0 && other.round != other
|
/macosx-10.10.1/ruby-106/ruby/lib/rake/ |
H A D | thread_history_display.rb | 25 (stat[:time] * 1_000_000).round,
|
/macosx-10.10.1/OpenSSL098-52/src/crypto/sha/asm/ |
H A D | sha512-x86_64.pl | 79 $round="%rdi"; # zaps $ctx 121 add ($Tbl,$round,$SZ),$T1 # T1+=K[round] 135 lea 1($round),$round # round++ 214 xor $round,$round 233 cmp \$$rounds,$round
|
/macosx-10.10.1/apache-793/httpd/support/ |
H A D | htcacheclean.c | 256 static apr_size_t round_up(apr_size_t val, apr_off_t round) { argument 257 if (round > 1) { 258 return (apr_size_t)(((val + round - 1) / round) * round); 406 static int list_urls(char *path, apr_pool_t *pool, apr_off_t round) argument 431 if (list_urls(apr_pstrcat(p, path, "/", info.name, NULL), pool, round)) { 511 round_up((apr_size_t)hinfo.size, round), 514 : 0, round), 965 apr_off_t inodes, apr_off_t nodes, apr_off_t round) 964 purge(char *path, apr_pool_t *pool, apr_off_t max, apr_off_t inodes, apr_off_t nodes, apr_off_t round) argument 1377 apr_off_t max, inodes, round; local [all...] |
/macosx-10.10.1/tcl-105/tcl_ext/bwidget/bwidget/ |
H A D | color.tcl | 202 set fround [frame $fg.round$count \ 229 set fround [frame $fg.round \ 320 $frame.round$_selection configure \ 323 $frame.round$count configure \ 325 focus $frame.round$count 439 set v [expr {round(65535.0*$val)}] 449 set p [expr {round(65535.0*$val*(1 - $sat))}] 450 set q [expr {round(65535.0*$val*(1 - ($sat*$f)))}] 451 set t [expr {round(65535.0*$val*(1 - ($sat*(1 - $f))))}]
|
/macosx-10.10.1/WebInspectorUI-7600.1.17/UserInterface/Models/ |
H A D | Color.js | 410 h = Math.round(h); 411 s = Math.round(s * 100); 412 l = Math.round(l * 100); 433 Math.round(sArray[ ~~h % 6 ] * 255), 434 Math.round(sArray[ (h|16) % 6 ] * 255), 435 Math.round(sArray[ (h|8) % 6 ] * 255)
|
/macosx-10.10.1/tcl-105/tk/tk/library/demos/ |
H A D | arrow.tcl | 46 $v(x2) $v(y) -width 2 -capstyle round -joinstyle round 172 set newA [expr {($v(x2)+5-round([$c canvasx $x]))/10}] 196 set newB [expr {($v(x2)+5-round([$c canvasx $x]))/10}] 203 set newC [expr {($v(y)+5-round([$c canvasy $y])-5*$v(width))/10}] 228 set newWidth [expr {($v(y)+2-round([$c canvasy $y]))/5}]
|
/macosx-10.10.1/tcl-105/tk84/tk/library/demos/ |
H A D | arrow.tcl | 44 $v(x2) $v(y) -width 2 -capstyle round -joinstyle round 172 set newA [expr {($v(x2)+5-round([$c canvasx $x]))/10}] 196 set newB [expr {($v(x2)+5-round([$c canvasx $x]))/10}] 203 set newC [expr {($v(y)+5-round([$c canvasy $y])-5*$v(width))/10}] 228 set newWidth [expr {($v(y)+2-round([$c canvasy $y]))/5}]
|
/macosx-10.10.1/emacs-93/emacs/lisp/ |
H A D | midnight.el | 76 (round (* 10000000 (mod num 1)))))) 186 (message "[%s] `%s' [%s %d]" ts bn (if bts (round delay)) cbld)
|