I have a screen that gives random division problems in scientific notation and expects scientific notation response. (Screen 2)
I have hard coded a set of numbers that causes it to fail. It doesn’t seem to be rounding negative numbers properly. Unless, I just forgot how to round, but if the next place value is 5 or more, it is supposed to round away from zero and if it is 4 or less it is supposed to round towards zero. Right?
When the value is 6.25 it rounds to 6.3 (away from zero) - correct.
When the value is -6.25 it rounds to 6.2 (towards zero) - incorrect.
In the graphing calc, round(-6.25, 1) gives -6.2, so it’s not a CL issue but rather how Desmos does it overall. You could use a conditional function in your code to get around this if needed, like R\left(n,p\right)=\left\{n<0:-\operatorname{round}\left(\left|n\right|,p\right),\operatorname{round}\left(n,p\right)\right\}
Thanks. I’ll create a workaround, but my confidence in Desmos is just a bit less if it’s not rounding properly.
Is there a way to search all your projects and all your screens (in batch) for a specific code? I have used rounding in multiple projects and now I’m going to have to go back to all of them and compensate for negative values.
Rather than a conditional you can use the sign()
function:
R\left(n,p\right)=\operatorname{sign}\left(n\right)\operatorname{round}\left(n,p\right)
FYI @Terry_Silveus, it’s not wrong to round this way. It just depends on the definition you use. Desmos uses “round up/down” or more technically “round more positive/negative”. Another definition is in reference to zero. The latter feels more natural to me as well, but again neither is incorrect. Not entirely unrelated, I taught high school geometry for a solid decade before I learned about the inclusive and exclusive definitions of quadrilateral classification. 
So is there a setting that can be set to change the way desmos rounds?
Unfortunately no. The modified function is the workaround.