08-18-2019, 05:28 PM
Whilst debugging, I sometimes find it useful to output a rounded list of numbers.
The good thing is that Round works on lists as well as numbers, so you don't need to round every item in the list.
Unfortunately, Round doesn't work with strings.
Would it be nice if the strings were ignored rather than generate an error?
Or would that break something?
The good thing is that Round works on lists as well as numbers, so you don't need to round every item in the list.
Unfortunately, Round doesn't work with strings.
Code:
EXPORT TRYER()
BEGIN
ROUND({ π,2*π},2);
//ROUND({"Answers: ",π,2*π},2);
END;
Would it be nice if the strings were ignored rather than generate an error?
Or would that break something?