Age | Commit message (Collapse) | Author | Files | Lines |
|
|
|
This exercise was fun, and I learned a simpler way to convert them.
|
|
A recursive function is a bit much for something that simple.
|
|
The text doesn't specify which technique to use. The section outlined
operator precedence, but I couldn't think of a way to check for truth in
the three main expressions without logical operators. So I turned to a
recursive function. It works, but I'm not sure if it's what K&R were
after.
|
|
There's no code like no code! :)
|
|
FLT_MIN and DBL_MIN refer to the lowest _positive number_ representable
in floating-point form on the machine, not the lowest _negative number_.
Subtracting FLT_MAX from 0 will give you the minimum.
|
|
Fixed gitignore list, too
|