fork(1) download
  1. x = 1.89
  2. print(int(x % 1 * 10))
  3.  
  4. x = 1.89
  5. print(int(abs(x) % 1 * 10))
  6.  
  7. x = -1.89
  8. print(int(abs(x) % 1 * 10))
Success #stdin #stdout 0.01s 27704KB
stdin
Standard input is empty
stdout
8
8
8