Jump to content

Module:Math: Difference between revisions

m
precision truncation issue
m>Dragons flight
m (silly signs...)
m>Dragons flight
m (precision truncation issue)
Line 117: Line 117:
         local rescale = math.pow( 10, precision );
         local rescale = math.pow( 10, precision );
         value = math.floor( value * rescale + 0.5 ) / rescale;
         value = math.floor( value * rescale + 0.5 ) / rescale;
        current_precision = z._precision( value );
     end     
     end     
      
      
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.