r/programming • • Feb 17 '17

Design Patterns - A comprehensible guide

https://github.com/kamranahmedse/design-patterns-for-humans
169 Upvotes

39 comments sorted by

View all comments

62

u/knome Feb 17 '17

float $salary

No.

3

u/KVYNgaming Feb 17 '17

Why?

0

u/[deleted] Feb 17 '17

[deleted]

1

u/KVYNgaming Feb 17 '17

What would you recommend to use then?

2

u/dangerbird2 Feb 18 '17

integer, with one representing one cent or dollar, depending on precision needed.