this post was submitted on 16 Nov 2024
5 points (77.8% liked)

Advent of Code

296 readers
1 users here now

Advent of Code is an annual Advent calendar of small programming puzzles for a variety of skill sets and skill levels that can be solved in any programming language you like.

https://adventofcode.com

founded 2 years ago
MODERATORS
 

In preparation for this year's event I started to create a utility library and realized that I might not even need to care about decimal, or even fractional numbers, as I don't remember ever encountering them while solving a problem so far. Does anyone have any examples for problems which required using floating point calculations? Is it maybe even explicitly stated that they are not needed? (I remember that Google Code Jam had some statistical problems where the solution didn't have to be exact, just within an acceptable error margin, but that isn't likely to happen here, right?)

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 1 points 2 months ago

I suppose they also don't want to make it too difficult for people using languages without decimal support, like Javascript.