INT
Syntax
=INT(Number)
=INT(Number)
Formatting
No special formatting is needed.
No special formatting is needed.
Example
The following table was used by a school to calculate the age a child when the
school year started.
A child can only be admitted to school if they are over 8 years old.
The Birth Date and the Term Start date are entered and the age calculated.
The following table was used by a school to calculate the age a child when the
school year started.
A child can only be admitted to school if they are over 8 years old.
The Birth Date and the Term Start date are entered and the age calculated.
Table 1 shows the age of the child with decimal places
Table 2 shows the age of the child with the Age formatted with no decimal places.
This has the effect of increasing the child age.
This has the effect of increasing the child age.
Table 3 shows the age of the child with the Age calculated using the =INT() function to
remove the decimal part of the number to give the correct age.
remove the decimal part of the number to give the correct age.
Note
The age is calculated by subtracting the Birth Date from the Term Start to find the
age of the child in days.
The number of days is then divided by 365.25
The reason for using 365.25 is to take account of the leap years.
The age is calculated by subtracting the Birth Date from the Term Start to find the
age of the child in days.
The number of days is then divided by 365.25
The reason for using 365.25 is to take account of the leap years.




कोई टिप्पणी नहीं:
एक टिप्पणी भेजें