General > General Technical Chat
What calculator do you use ?
pmurray4:
I use a Casio fx-991MS, excellent calculator, has engineering notation input and outputs too!
HighVoltage:
--- Quote from: retrolefty on January 05, 2015, 11:13:23 am ---HP 32S II RPG is my goto calculator. Over the years I was frequently amused when someone would ask to borrow/use my calculator for a quick results only to see them stare for way too long looking for the equals button. :-DD
--- End quote ---
+1
Happens again and again and is always funny to watch
SeanB:
Even funnier is replacing the built in calculator on a PC with a RPN version. Or set it to octal mode. That one can be really confusing as it seems to work...........
rr100:
Speaking of that - try either in normal windows cmd or linux:
ping 192.168.0.01
(doesn't matter your network, should be working as expected, either timeout or answer, whatever - and do not forget the extra 0)
you can continue with any or all below:
ping 192.168.0.02
ping 192.168.0.03
ping 192.168.0.04
ping 192.168.0.05
ping 192.168.0.06
ping 192.168.0.07
Still nothing special, works as expected.
and then the surprise comes:
ping 192.168.0.08
WTF IS GOING ON!
(and the same with 192.168.0.09 for that matter)!
TopLoser:
--- Quote from: mojo-chan on January 05, 2015, 04:25:48 pm ---Obviously the leading zero indicates that the number is octal. Since 8 is not a valid octal digit, the command fails.
This is a pretty common trap for young players using the C standard library. Functions like atoi() treat numbers with leading zeros as octal.
--- End quote ---
Hmm not quite... ANSI Standard C atoi() only supports base 10 ASCII values, strtol() and other some functions support alternate bases such as hexadecimal and octal.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version