MathGroup Archive 2008

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

Search the Archive

Re: Is there a simple way to transform 1.1 to 11/10?


Andrzej Kozlowski writes:
 > I think this will do it:
 > 
 > ff[z_] := With[{w = RealDigits[z]},FromDigits[MapAt[# /. {x___, a_ /;  
 > a != 0, 0 ...} :> {x, a} &, w, 1]]]

Yes, it seems to.  Thank you so much!  (although I asked for a
*simple* way :-)


  • Prev by Date: Re: A Dynamic mess
  • Next by Date: Re: Is there a simple way to transform 1.1 to 11/10?
  • Previous by thread: Is there a simple way to transform 1.1 to 11/10?
  • Next by thread: Re: Is there a simple way to transform 1.1 to 11/10?