Variable precision for floating-point outputs.

This commit is contained in:
Marcel Keller
2019-01-04 17:33:12 +01:00
parent 136a0d1255
commit 343f484c38
9 changed files with 28 additions and 0 deletions

View File

@@ -103,6 +103,9 @@ def print_ln_if(cond, s):
cond.print_if(s[:4])
s = s[4:]
def print_float_precision(n):
print_float_prec(n)
def runtime_error(msg='', *args):
""" Print an error message and abort the runtime. """
print_str('User exception: ')