In this snippet, look at how to get a random integer between two numbers.
Check whether a number is odd or even using the modulo (%) operator. Return true if the number is even, false if the number is odd.
Check whether a number is odd or even using the modulo (%) operator. Return true if the number is odd, false if the number is even.
Use Math.pow() to calculate x to the power of 1/n which is equal to the nth root of x.
Use Math.max() and Math.min() to find the closest safe value. Use Math.round() to convert to an integer.
Calculate the time, distance, or speed given any two of the pieces of information. Convenient!
This script will factor and solve for both values of X, any quadratic equation that has real number solutions.
This script will convert whole numbers to Roman numerals, up to 3,999,999. Easy to use.
Use this script to calculate your BMI (Body Mass Index). Measurements are computed using the metric system. A perfect addition for a health Web site.
A handy calculator that will calculate both your Western and Chinese birth Signs.