Quantcast
Channel: Recent Writing - Mark Story
Viewing all articles
Browse latest Browse all 119

PHP floats, localization and landmines

$
0
0
Since PHP lacks a decimal type, it only has floats and integers. Arbitrary precision floating points are reasonable once you stop expecting them to be precise. I’ve learned to deal with PHP’s floats, and arbitrary precision floats in general. However, floats behaving totally different based on the current locale, was something I didn’t expect.

Viewing all articles
Browse latest Browse all 119

Trending Articles