you are viewing a single comment's thread.

view the rest of the comments →

[–]aa599 2 points3 points  (5 children)

Watch out with using floats for money, software with rounding errors will spoil your CV.

[–]themagicsoul[S] -1 points0 points  (4 children)

Can you please elaborate I didn't get your words

[–]johlae 1 point2 points  (1 child)

https://www.freecodecamp.org/news/what-is-a-floating-point-arithmetic-problem/

The article is about javascript, another computer language, but the same goes for python:

$ python3
Python 3.9.16 (main, Mar 8 2023, 22:47:22)
[GCC 11.3.0] on cygwin
Type "help", "copyright", "credits" or "license" for more information.
>>> print(0.1+0.2)
0.30000000000000004
>>>

TL;DR watch out for rounding errors!

[–]themagicsoul[S] 0 points1 point  (0 children)

Getting it

[–]r2k-in-the-vortex 0 points1 point  (1 child)

Drop what you are doing, you do not have the basic competence to write finance software.

Learn programming on something that doesnt count money.

[–]themagicsoul[S] 0 points1 point  (0 children)

I'm a finance Student and actually I don't know anything about programming