num$ = "9889.98"
value = VAL(num$) ' Single value is accurate
TOTAL# = TOTAL# + value ' returns TOTAL as a Double value
PRINT value, TOTAL#
Certain values, not all, will do that. If you are adding a lot of values, you can convert the results back to a string to get rid of the extra decimal places.
Or you can display the trimmed results with:
PRINT USING " #############,.##"; TOTAL#
PRINT USING will also round the decimal places, but that is just for show. The actual value does not change.Statistics: Posted by burger2227 — Fri Dec 11, 2009 12:07 am
]]>