On 3/23/2015 5:52 AM, Steven D'Aprano wrote: > Are there any other, possibly better, ways to calculate the fractional part > of a number? float (("%6.3f" % x)[-4:]) Emile