Skip to content

Instantly share code, notes, and snippets.

@wacky
Created December 5, 2019 02:16
Show Gist options
  • Save wacky/0d8747be602e2be299c43b535a59a8f7 to your computer and use it in GitHub Desktop.
Save wacky/0d8747be602e2be299c43b535a59a8f7 to your computer and use it in GitHub Desktop.
なるほど 🤔
> 0.9999999999999999444888487687421729 === 1
< false
> 0.999999999999999944488848768742173 === 1
< true
@hadi41
Copy link

hadi41 commented Mar 26, 2020

int(0.999999999999999944488848768742172978818416595458984375)
1
int(0.99999999999999994448884876874217297881841659545898437499999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999999)
0

@QGB
Copy link

QGB commented Oct 8, 2022

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