I manually required the N/format module beforehand...
# suitescript
d
I manually required the N/format module beforehand though and assigned to variable fmt, that might be relevant