Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Is anyone able to do this in hexadecimal?

Wolfram Alpha interprets 1/0x9999998 or 1/0xffffffe correctly as hex input, but still shows the output as decimal approximation, while a hexadecimal approximation would be more useful here. I would be really curious what this thing looks like in other numeric bases.

Unfortunately, the "Other base conversions" section only shows up to 7 or so digits after the point and doesn't allow expanding.

EDIT: found it! I didn't know bc in linux was this awesome! echo "obase=16;ibase=16;scale=1000;1/FFFE" | bc .0001000200040008001000200040008001000200040008001000200040008001000 (....)



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: