Services & Resources / Wolfram Forums
MathGroup Archive
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2000

[Date Index] [Thread Index] [Author Index]

Search the Archive

Displaying Mixed Numbers

  • To: mathgroup at
  • Subject: [mg25124] Displaying Mixed Numbers
  • From: Jim Graber <jgraber at>
  • Date: Sun, 10 Sep 2000 03:14:44 -0400 (EDT)
  • Sender: owner-wri-mathgroup at

While working with my third grader, I discovered the need
to make 5/3 display and print as 1 2/3 so she can check her

I couldn't find a way to do this easily, so I wrote the following which
does the job.  Is there an easier or better way?
Thanks.  Jim Graber

Mix1[x_] := { Quotient[Numerator[x], Denominator[x]],
    Mod[Numerator[x], Denominator[x]]/Denominator[x]}

Mix[x_] := Print[Mix1[x][[1]], Mix1[x][[2]]];

Sent via
Before you buy.

  • Prev by Date: Number Combining/Wheeling
  • Next by Date: Re: Need Help With Simple Animation
  • Previous by thread: RE: Number Combining/Wheeling
  • Next by thread: Displaying Mixed Numbers