[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-users] Conversion decimal into fractional
On Dec 21, 2004, at 9:03 PM, James McCartney wrote:
lower = [0,1];
upper = [1,0];
actually the following change speeds things up a lot for values much greater than 1.
<x-tad-smaller> if (this < 1.0) {
lower = [0,1];
upper = [1,1];
}{
lower = [this.floor, 1];
upper = [lower[0]+1, 1];
};
</x-tad-smaller>
Otherwise it it counts up by one each time from one, making something like 1000001.234567 take a very long time.