Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

How do I wrote floor() without boolean logic?

Name: Anonymous 2006-02-19 14:55

How do I write a floor function without using boolean logic?

Name: Anonymous 2006-02-21 3:37

You've got to start with some axioms. In computing int() can be considered an axiom because it relies on the hardware implementation. Doesn't need logic as such, you just dump the non-integral part.

In maths the axioms are usually considered to be logic and set theory, so if you want to reduce the problem down to the axioms but you don't want to use logic, well, that's not gonna happen.

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List