diff -r 65969628e920 -r efe0b5b21842 svghmi/sprintf.js --- a/svghmi/sprintf.js Fri Mar 10 09:13:29 2023 +0100 +++ b/svghmi/sprintf.js Fri Aug 18 11:38:20 2023 +0200 @@ -59,8 +59,13 @@ arg = arg() } - if (re.numeric_arg.test(ph.type) && (typeof arg !== 'number' && isNaN(arg))) { - throw new TypeError(sprintf('[sprintf] expecting number but found %T', arg)) + if (re.numeric_arg.test(ph.type)){ + let argtype = typeof arg; + if ( argtype !== 'bigint') { + if ( argtype !== 'number' && isNaN(arg) ) { + throw new TypeError(sprintf('[sprintf] expecting number but found %T', arg)) + } + } } if (re.number.test(ph.type)) {