Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
C0D4681465yPHP has the same issues when working with floats.
I don't know if Js has a bcscale counterpart to solve that. -
C0D4681465y@dudeking my favourite is
let x = "ABC123-A"
x++
Somehow I've had a legitimate use case to do this before 😣 -
C0D4681465y@skydhash increment last letter on string as it's a rolling value.
🤔I guess that's a php thing then.
C#
Math.Ceiling(-0.4);
>> 0
JavaScript
Math.ceil(-0.4);
>>-0
rant
javascript you clown