Searched refs:shifter (Results 1 - 1 of 1) sorted by relevance

/macosx-10.10.1/ruby-106/ruby/ext/bigdecimal/
H A Dbigdecimal.c5677 BDIGIT v, shifter; local
5698 for (shifter=1,i=0; i<n; ++i) shifter *= 10;
5714 shifter is 10**n,
5715 v % shifter are the remaining digits within v
5716 v % (shifter * 10) are the digit together with the remaining digits within v
5717 v / shifter are the digit's predecessors together with the digit
5718 div = v / shifter / 10 is just the digit's precessors
5719 (v / shifter) - div*10 is just the digit, which is what v ends up being reassigned to.
5722 fracf = (v % (shifter * 1
[all...]

Completed in 73 milliseconds