The Math Module
sqrt, sin, log.
The Math Module
The Math module provides advanced math functions and constants. You call its methods with the module name, like Math.sqrt.
puts Math.sqrt(16)Square Root
Math.sqrt returns the square root as a float.
puts Math.sqrt(2)
puts Math.sqrt(144)