Purpose

Return value

Syntax

=FLOOR.PRECISE(number,[significance])
  • number - The number that should be rounded.
  • significance - [optional] Multiple to use when rounding. Default is 1.

Using the FLOOR.PRECISE function

The Excel FLOOR.PRECISE function rounds a number down to a given multiple, where multiple is provided as the significance argument. If the number is already an exact multiple, no rounding occurs and the original number is returned.

The FLOOR.PRECISE function takes two arguments , number and significance. The number argument is the numeric value to round down, and is the only required argument. With no other input, CEILING.PRECISE will round number up to the next integer.

The significance argument is the multiple to which number should be rounded. In most cases, significance is provided as a numeric value, but FLOOR.PRECISE can also understand time entered as text like “0:15”. The default value of significance is 1.

Examples

By default, FLOOR.PRECISE rounds down to the next integer, with a significance of 1.

=FLOOR.PRECISE(3.75) // returns 3
=FLOOR.PRECISE(8.9) // returns 8

To round to a different multiple, provide a value for significance :

=FLOOR.PRECISE(5.75,3) // returns 3
=FLOOR.PRECISE(5.75,2) // returns 4
=FLOOR.PRECISE(5.75,0.5) // returns 5.5

Rounding negative numbers

The FLOOR.PRECISE function always rounds negative numbers down away from zero, and ignores the sign of significance.

=FLOOR.PRECISE(-4.1) // returns -5
=FLOOR.PRECISE(-4.1,1) // returns -5
=FLOOR.PRECISE(-4.1,-1) // returns -5

FLOOR.PRECISE vs FLOOR

The FLOOR.PRECISE function differs from the FLOOR function in these ways:

  1. Provides a default significance of 1, rounding to nearest integer
  2. Always rounds negative numbers down away from zero
  3. Ignores the sign of significance (uses the absolute value)

Notes

  • FLOOR.PRECISE always rounds negative down away from zero.
  • If number is an exact multiple of significance, no rounding occurs.
  • To round to the nearest multiple ( up or down) see the MROUND function .

Purpose

Return value

Syntax

=GCD(number1,[number2],...)
  • number1 - The first number.
  • number2 - [optional] The second number.

Using the GCD function

The GCD function returns the greatest common divisor of two or more integers. The greatest common divisor is the largest positive integer that divides the numbers without a remainder. In other words, the largest number that goes into all numbers evenly.

The GCD function takes one or more arguments called number1 , number2 , number3 , etc. All numeric values are expected to be integers. Numbers with decimal values will be truncated to integers before a result is calculated. Each argument can be a hardcoded constant, a cell reference, or a range that contains multiple values. The GCD function can accept up to 255 arguments total.

Examples

To return the greatest common divisor of the numbers 60 and 36:

=GCD(60,36) // returns 12

GCD returns the number 12, since 12 is the largest factor that goes into both numbers evenly. To get the greatest common divisor of 12, 16, 48:

=GCD(12,16,48) // returns 4

In the example workbook shown above, the formula in F5 is:

=GCD(B5:D5)

As the formula is copied down, the GCD function returns a new result for each row, based on the values in columns B, C, and D. Empty cells are evaluated as zero.

Notes

  • GCD evaluates empty cells as zero.
  • GCD works with integers; decimal values are removed before calculation.
  • If arguments contain a non-numeric value. GCD returns the #VALUE! error.
  • To calculate the least common multiple, see the LCM function .