What are the various ways to remove a decimal from a number?
What will be an ideal response?
Decimals can be removed from a number in a few ways. First, the Math.floor
method will remove any decimal value, leaving only the whole number.
Math.ceil will round the number up to the next whole number if there is
any decimal value at all. Math.round will remove the decimal if the decimal
value is less than .5, or round the number up to the next whole number if
the decimal value is equal to or greater than .5
You might also like to view...
Match the following Windows 8 items with their location:
I. Notification area II. taskbar III. minus sign IV. Start screen access V. title bar A. right side of the taskbar B. bottom of the desktop C. bottom-right corner of the Start screen D. top of each window E. bottom-left corner of the desktop
In Draft view, a page break is shown as a horizontal dashed line.
Answer the following statement true (T) or false (F)