How to Read Part of an Integer
Excel INT Office
Summary
The Excel INT function returns the integer part of a decimal number by rounding down to the integer. Note that negative numbers get more negative. For instance, while INT(10.8) returns 10, INT(-10.8) returns -11.
Purpose
Get the integer office of a number by rounding downwards
Return value
The integer role of the number subsequently rounding down
Arguments
- number - The number from which you lot want an integer.
Usage notes
The INT function returns the integer function of a decimal number by rounding down to the integer. It is important to empathize that the INT office returns the integer part of a decimal number, after rounding down. Ane issue of this beliefs is that negative numbers get more negative. For example, while INT(ten.eight) returns 10, INT(-10.viii) returns -11. To render an integer by truncating decimals, see the TRUNC function.
The INT office takes just one statement, number, which should be a numeric value. INT returns a #VALUE! error if number is not a numeric value. If number is already a whole number, INT has no effect.
Examples
When numbers are positive, the INT function rounds down to the side by side lowest whole number:
= INT ( three.25 ) // returns three = INT ( 3.99 ) // returns 3 = INT ( iii.01 ) // returns iii
Notice INT rounds positive numbers down toward zero. With negative numbers, INT rounds down away from naught:
= INT ( - three.25 ) // returns -4 = INT ( - 3.99 ) // returns -4 = INT ( - 3.01 ) // returns -4
INT vs. TRUNC
INT is like to the TRUNC office because they both tin can return the integer office of a number. Yet, TRUNC simply truncates a number, while INT actually rounds a number down to an integer. With positive numbers, and when TRUNC is using the default of 0 for num_digits, both functions return the same results. With negative numbers, the results tin be different. INT(-three.1) returns -4, because INT rounds downwardly to the lower integer. TRUNC(-3.1) returns -iii. If y'all merely want the integer part of a number, you lot should use TRUNC.
Rounding functions in Excel
Excel provides a number of functions for rounding:
- To round normally, utilise the ROUND function.
- To round to the nearest multiple, use the MROUND function.
- To round down to the nearest specified identify, use the ROUNDDOWN function.
- To round downwardly to the nearest specified multiple, employ the FLOOR function.
- To circular upwardly to the nearest specified place, use the ROUNDUP role.
- To round up to the nearest specified multiple, use the CEILING part.
- To round down and return an integer only, employ the INT function.
- To truncate decimal places, use the TRUNC function.
Notes
- INT returns a #VALUE! mistake if number is not a numeric value.
- Use the INT office to get an integer from a number by rounding.
- Use the TRUNC function to return an integer past truncating.
Download 100+ Important Excel Functions
Get over 100 Excel Functions yous should know in i handy PDF.
Excel video training
Quick, clean, and to the point.
Source: https://exceljet.net/excel-functions/excel-int-function
Belum ada Komentar untuk "How to Read Part of an Integer"
Posting Komentar