Mega Code Archive
Categories
/
MSSQL Tutorial
/
Math Functions
Computing the modulus with FLOOR
4> 5> 6> SELECT 5-2*FLOOR(5/2) 7> GO ----------- 1 (1 rows affected) 1>