Displaying Mixed Numbers
- To: mathgroup at smc.vnet.net
- Subject: [mg25149] Displaying Mixed Numbers
- From: "Robert Hunn" <rwhunn at worldnet.att.net>
- Date: Sun, 10 Sep 2000 21:25:42 -0400 (EDT)
- Sender: owner-wri-mathgroup at wolfram.com
Method I use is:
MixedFraction[f_] :=
Module[{ip, fp}, ip = IntegerPart[f]; ip = If[ip == 0, "", ip];
fp = FractionalPart[f]; Print[ip, fp]]