What's the best way to get the fractional part of a real? The two ways I can see are r % 1 and r = int(r), but both seem a bit hokey. Is there something more straight-forward that I'm missing, like fraction(r)? -- http://mail.python.org/mailman/listinfo/python-list
- getting the fractional part of a real? Roy Smith
- Re: getting the fractional part of a real? Christian Heimes
- Re: getting the fractional part of a real? Mark Dickinson
- Re: getting the fractional part of a real? Gregor Lingl