Ashish Patel: Notes

Atom feed

Recently added: Conventional commits, Cli, Shortcuts, Subscriptions, Topic

Random Formulas

Inverse a Number

Mod(%) operation on a number by 10 returns the rightmost digit Divide(/) operation on a number by 10 removes the rightmost digit

Num = 126

$Num = (1100) + (210) + (6)$


Reversing 126 % 10 = 6
int(126/10) = 12
12 % 10 = 2
int(12/10) = 1
1 % 10 = 1

$Reverse = (6100) + (210) + (1)$

Created 2019-01-23T11:57:03+05:30 · Edit