TMvK
  • Home

javascript

A collection of 1 post

javascript

Quickie: round()

Once again, different programming languages give different results. Now let's focus on rounding negative numbers. Python + PHP print(round(-1.5)) # -2 print(round(1.5)) # 2 echo round(-1.5) // -2 echo

TvK
TMvK © 2025
Latest Posts Ghost