I need to find a solution. If I only want to show one month of interest, the fractional part is imporant to obtain the right calculation. On my old laptop, the code worked when I put in the result of diving 1 into 12, which is 0.0833333337; on my new Dell desktop, this displays more than one month and returns info for two. I had to enter .083, and this properly shows. So, it's rounding up on one system (using an AMD processor), while it rounds down on a system with an Intel processor.
To solve this, I may have to force it to round down in all cases, so that it can display properly.
Am I wrong, or how should I take care of the precision so that it can work across all system architectures?
I need to find a solution. If I only want to show one month of interest, the fractional part is imporant to obtain the right calculation. On my old laptop, the code worked when I put in the result of diving 1 into 12, which is 0.0833333337; on my new Dell desktop, this displays more than one month and returns info for two. I had to enter .083, and this properly shows. So, it's rounding up on one system (using an AMD processor), while it rounds down on a system with an Intel processor.
To solve this, I may have to force it to round down in all cases, so that it can display properly.
Am I wrong, or how should I take care of the precision so that it can work across all system architectures?