tfloat5.nim 229 B

1234567891011121314151617
  1. discard """
  2. output: '''
  3. 0 : 0.0
  4. 0 : 0.0
  5. 0 : 0.0
  6. 0 : 0.0
  7. '''
  8. """
  9. import parseutils
  10. var f: float
  11. echo "*".parseFloat(f), " : ", f
  12. echo "/".parseFloat(f), " : ", f
  13. echo "+".parseFloat(f), " : ", f
  14. echo "-".parseFloat(f), " : ", f