Jump to content

Module:Math: Difference between revisions

whitespace
m>Dragons flight
(Add precision calculation)
m>Dragons flight
(whitespace)
Line 21: Line 21:
function z._precision( x )
function z._precision( x )
     x = string.upper( x )
     x = string.upper( x )
      
 
     -- Remove leading / trailing whitespace
    x = x:match "^%s*(.-)%s*$";
 
     local decimal = string.find( x, '.', 1, true )
     local decimal = string.find( x, '.', 1, true )
     local exponent = string.find( x, 'E', 1, true )
     local exponent = string.find( x, 'E', 1, true )
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.