Re: graphic points
Posted: Mon Jun 10, 2013 9:19 pm
OK - there are (at least) two issues here:
1. Fixing parsepoint and parsepoints to return truncated integer values. This is easy.
2. Changing MCU_strtol to return the true value rather than a truncated integer.
Without #2, parsepoint and parsepoints can only work with truncated values, not rounded values. That was my first attempt, and it works as designed. No other side-effects into other functions. Rounding rather than truncating can't happen without changing MCU_strtol or without changing parsepoint and parsepoints to use a different function that allows for the parsing of non-integer numbers.
1. Fixing parsepoint and parsepoints to return truncated integer values. This is easy.
2. Changing MCU_strtol to return the true value rather than a truncated integer.
Without #2, parsepoint and parsepoints can only work with truncated values, not rounded values. That was my first attempt, and it works as designed. No other side-effects into other functions. Rounding rather than truncating can't happen without changing MCU_strtol or without changing parsepoint and parsepoints to use a different function that allows for the parsing of non-integer numbers.