Dividing



Normal Division

/ division (always produces a float (.0) at the end of whole numbers

div = 100 / 15 
print(div) ' 6.6666666667


Floor Division

// (twice) floor division operator - returns the quotient it will divide the numbers and just return the whole number leaving out the decimal point

qu = 100 // 15 
print(qu) ' 6


Remainder

% (for modulus)

rem = 100 % 15 
print(rem) ' 10






© 2026 Better Solutions Limited. All Rights Reserved. © 2026 Better Solutions Limited TopPrevNext