Skip to content

Instantly share code, notes, and snippets.

@Rudxain
Last active December 18, 2022 04:01
Show Gist options
  • Save Rudxain/86f0e4e8f15c2e4c489c07aac11a47ad to your computer and use it in GitHub Desktop.
Save Rudxain/86f0e4e8f15c2e4c489c07aac11a47ad to your computer and use it in GitHub Desktop.
Attempt to generalize Count-Trailing-Zeros to non-integers, in a mathematical way, no IEEE754

define CTZ(a * b^c, b) = c ; where GCD(a, b^c) = 1

following is in binary:

0.0101 -> -10

101 * 10^-100 -> -100 (contradiction)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment