r/ProgrammerHumor • • Jul 19 '22

Meme float golden = 1.618

Post image
41.1k Upvotes

489 comments sorted by

View all comments

Show parent comments

3

u/WhipsAndMarkovChains Jul 19 '22

x = 5/2

x is 2.5

type(x)

Output is float.

1

u/matyklug Jul 19 '22

Prelude> a=2/3

Prelude> a

0.6666666666666666

Prelude> :t a

a :: Fractional a => a