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

I wrote the calculator for the original blackberry. Floating point won't do. I implemented decimal based floating point functions to avoid these rounding problems. This sounds harder than it was, basically, the "exponent" part wasn't how many bits to shift, but what power of two to divide by, so that 0.1, 0.001 etc can be represented exactly. Not sure if I had two or three digits of precision beyond whats on the display. 1 digit is pretty standard for 5 function calculators, scientific ones typically have two. It was only a 5 function calculator, so not that hard, plus there was no floating point library by default so doing any floating point really ballooned the size of an app with the floating point library.


> the "exponent" part wasn't how many bits to shift, but what power of two to divide by, so that 0.1, 0.001 etc can be represented exactly

You mean what power of ten to divide by?


yes


Holy shit, I thought you just made mindblowing mechanical devices.

I can see why you wouldn't necessarily just want to use it, but I thought the RIM pager had a JVM with floating point?

I mostly just used mine for email.


The JVM based devices came years later. This was around 1998, with the 386 based blackbery pager that could only do emails over Mobitex, no phone calls. It even looked like a pager. At the time, phones were not so dominant, data switched over mobile only existed on paper, and two-way paging looked like it had a future. So we totally killed the crude 2-way paging networks that were out there. And RIM successfully later made the transition to phone networks. Wasn't till iPhone and android that RIM ran into trouble.


Yup, that's the one I had. Best keyboard I ever used on a pocket device. So I used your calculator, a little.




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

Search: