I love April Fools jokes.

Yes, and let's add the null coalescing increment and decrement operators:
$foo??++ and $bar??-- .  I want to ensure that an undeclared or null
variable defaults to 0 before becoming 1  or -1 without needing to manually
instantiate the variable as 0.

Pfft.
---

Anyhow, why wouldn't rounding precision be decided by the precision of the
float/integer with the lesser precision?

1.  1.55 ~= 1.5499 // true (because rounding 1.5499 to 2 decimal places is
1.55)

2.  3.1415 ~= 3.141 // false (because rounding 3.1415 to three decimal
places is 3.142)

3. 1000 ~= 999.50000001 // true (rounding to integer comparison)

mickmackusa

Reply via email to