These are chat archives for ChaiScript/ChaiScript

Nov 2018
Rob Loach
Nov 14 2018 07:24
@frankturley ChaiScript supports template literals.....
var num = 10.222
print("Something: ${num}")
Nov 14 2018 09:37
My problem is that I am reading a variable which has 6 places of decimals, I would like to print it as a whole number.
Arthur Brainville
Nov 14 2018 09:44
You can probably use a floor or ceil function. Or give a function int to_int(double n) { return n; } to your chai script engine from the C++ side ?
And you just use it when printing