Metamath Proof Explorer


Theorem intfrac

Description: Break a number into its integer part and its fractional part. (Contributed by NM, 31-Dec-2008)

Ref Expression
Assertion intfrac A A = A + A mod 1

Proof

Step Hyp Ref Expression
1 modfrac A A mod 1 = A A
2 1 oveq2d A A + A mod 1 = A + A - A
3 reflcl A A
4 3 recnd A A
5 recn A A
6 4 5 pncan3d A A + A - A = A
7 2 6 eqtr2d A A = A + A mod 1