Texas Instruments TI-99/4A Home Computer: the first home computer with a 16bit processor, crammed into an 8bit architecture. Great hardware - Poor design - Wonderful BASIC engine. And it could talk too!Please visit my YouTube Channel
I presume as 0.6 is 0.1 * 6 it is why you get the 0.60000002384186. it is the closest that can be done in binary.
It has big implications for financial software and you should always represent money as integers of the smallest division ie pence, cent etc and then just divide by 100 to represent the pound/euro/dollar.
tastyraspberry wrote:
It has big implications for financial software and you should always represent money as integers of the smallest division ie pence, cent etc and then just divide by 100 to represent the pound/euro/dollar.
Michael
This is true, but I've had trouble in the past displaying the result becasue you have to convert back to a string to do so ( using StrF or StrD ) and would love for PB to have currency handling functions built in.
tastyraspberry wrote:
It has big implications for financial software and you should always represent money as integers of the smallest division ie pence, cent etc and then just divide by 100 to represent the pound/euro/dollar.
Michael
This is true, but I've had trouble in the past displaying the result becasue you have to convert back to a string to do so ( using StrF or StrD ) and would love for PB to have currency handling functions built in.
for decimal currencies (ie Pounds, Euros, Dollars), perhaps something like this to displaying the integer?