wholepart
Wholepart is a term used to describe the integer part of a real number—the portion of the number that is a whole number, independent of any fractional component. In formal mathematics, this concept is most clearly captured by the floor function, denoted ⌊x⌋, which returns the greatest integer less than or equal to x. For example, ⌊12.34⌋ = 12 and ⌊-2.7⌋ = -3.
In some programming and teaching contexts, the term wholepart is used more loosely to refer to truncation
Mathematically, the floor function ⌊x⌋ is a nondecreasing, integer-valued function that is discontinuous at every integer.
In practical use, wholepart appears in number theory, digital representations, measurements, and data processing, where separating