import math n = 0.1000065 print math.floor(n * 1e6) / 1e6
Standard input is empty
0.100006
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!