You are currently reviewing an older revision of this page.

KB-XXXX Floating Point Arithmetic

Symptom

Receiving unexpected results for a calculation involving decimals. 

Cause

This is not a bug, but rather a rounding issue due to floating point arithmetic. 

Workaround

fixed() and round()