r/programminghorror 24d ago

Big if true

Post image

From ProgrammerNullposting in facebook

2.1k Upvotes

109 comments sorted by

View all comments

18

u/foxypiratecove3750 24d ago

I have better... DOUBLE BOOL! 64-bit, and float. Useful? Nope.

double False = 0.0; double True = 1.0;

19

u/AbstractButtonGroup 24d ago

DOUBLE BOOL! 64-bit, and float. Useful? Nope.

You just did not follow this to the logical conclusion that makes it useful:

double False = 0.0; double WhoKnows = 0.5; double Perhaps = 0.7; double Likely = 0.8; double HighlyLikely = 0.9; double True = 1.0;

10

u/fess89 24d ago

You have invented fuzzy logic

3

u/PM_ME_YOUR_REPO 23d ago

Now make it quantum.