Home | Stories | Reviews | TreoCast | Treo Store | Accessories | Software | Discussion | Mobile | About | Search
 
treocentral.com >> Stories >> Guides
Hidden Treasures: The Treos' other calculators, Part 3

Wed Aug 2, 2006 - 11:56 AM EDT - By Jay Gross

Overview

Our story so far

This is part 3 in the series on the PalmOS Treos’ (650 and 700p) extra calculators. It documents the two remaining calculators, plus the four units converters. First we'll tackle Logic, then spend some quality time with Statistics, then we convert light years to hectares, pounds to pints, and miles to—well, you get the idea.

To review, check out Part 1, and Part 2. I made a couple of (gasp!) errors in those parts, so I’ll correct them in the Errata at the end of this article.

Now let’s explore the other Treo calculators. I’ve taken them up in the order in which they appear in the smart phones, and the next one on the list is ever so logical. Pun intended.


Logic

Geek alert! This exotic calculator performs math on hex numbers – or Binary, Octal, and other computer programmer favorites listed in the Prefs pulldown menu. It shifts right or left, and you can convert among hex, decimal, and any of the other choices. The actual “logic” functions are the four buttons at the far right, Boolean And, Or, Not, and Exclusive Or.

If you’re a programmer, you probably don’t need me to tell you how to use the Logic calculator, which has little practical use otherwise, but here goes:

Example()
If
   You <> programmer(computer)
   OR You <> programmer(wannabe)
Then
   Never_mind
Else
   Read ON = Yes
End If 

The Logic calculator puts plain and fancy arithmetic at the point of your Treo’s stylus. It can do math on numbers (floating point or integers), invoking a variety of conventions for displaying them. The numbers are the same, just expressed differently. The choices are listed in the Pref menu. Press the Menu button on the Treo and explore.

  • Binary – If you need to know what this is, turn in your pocket protector at the front desk.
  • Octal – This is base 8.
  • SDec – Signed Decimal. Base 10, 2's complement format, most significant bit is the sign bit.
  • Udec – Unsigned Decimal. Base 10, no sign bit.
  • Hex – Base 16. That means 0 through F.

In the Logic calculator, the number base (radix) menu replaces the Float/Fixed/whatever menu that the other calculators have. At the bottom of that menu, you can change the integer size, 8, 16, or 32 bits. The calculator disables any number keys which don’t apply to the number base and integer size you’ve selected, and will refuse to accept numbers that are out of range of the integer size. So, in 8 bit format, you can enter 256, but not 257, and 32,268 is out of the question. The 32-bit integers go to 4,294,967,296, but after that, tough.

The calculator also converts among the number bases, applying limits as appropriate. If you need to look at Binary 0’s and 1’s for the number, change to the binary display. For example eleven (11) in Signed Decimal converts to 1011 in Binary. The Binary display is limited to the 33 rightmost digits – i.e., useful for numbers smaller than 2,147,483,647. You can convert larger numbers, but only 33 digits show – the “least significant bits” in programmer parlance.

In Hexadecimal – base 16 – the keypad comes up short. That’s what the ABCDEF keys are for. They don’t do anything in the other number bases.

The functions

  • LSL -- Logical Shift Left (shifts the value left by the number of bits you specify, and fills with zeros). Tap a number, tap LSL, tap the second number (the number of bits you want to shift by), and tap the big = button.
  • LSR – Logical Shift Right. Visible in Bin, Octal, Unsigned Decimal, and Hex modes, LSR works the same as LSL, but shifts rightwards.
  • ASR – Arithmetic Shift Right. Visible only in Signed Decimal mode, ASR indicates that the sign bit will be propagated rightwards.
  • Plus/Minus – Changes the sign. In programmer-speak, this key performs 2's complement negation. For example, "1" changes to "FFFFFFFF" hex, the proper value for -1 in the standard 2's complement signed integer format. This is the same as doing "1[Not][ ]1[=]".
  • AND -- Logical AND. Thank you Professor Bool.
  • OR – Another Boolean
  • NOT – Ditto.

The Store and Recall keys work the same as in the other calculators. In the Logic calculator, however, the values display in the current number base and integer size. The actual value in memory remains constant (unless you change it with Store), unaffected by displaying in other formats. Constants also display in the current number base, and can therefore be converted among them.

Logic isn’t for everyone, perhaps because it clearly dictates.



Next Page: Statistics >>

 
References
Actions
» Print this page
» Digg!





Cases

Chargers

Bluetooth

Headsets

Keyboards

Memory
Protectors Cradles
Styli


More Treo Accessories

Pen Stylus  (3-Pack)
Palm Pen Stylus (3-Pack) for Treo 755p, 750, 680
Extra Styli!
Just $14.95 BUY

More Styli
1200mAh Battery
Palm 1200mAh Battery for Treo 750, Treo 680
Extend your talk time!
Just $14.95 BUY

More Batteries
2600mAh Extended Battery (With Battery Door)
Seidio 2600mAh Extended Battery (With Battery Door) for Treo 800w
More power for your Treo!
Just $54.95 BUY

More Batteries
MicroUSB High Performance Car Charger
Motorola MicroUSB High Performance Car Charger for Treo Pro, Treo 800w
Unique lens illuminates when plugged in!
Just $14.95 BUY

More Car Chargers
Pen Stylus (3 Pack)
Seidio Pen Stylus (3 Pack) for Treo 800w
Keep spares on hand
Just $19.95 BUY

More Styli
MINIKIT Speakerphone
Parrot MINIKIT Speakerphone
Voice recognition technology and extended talk time.
Just $79.95 BUY

More Easy Install
micro-USB Travel Cable
Palm micro-USB Travel Cable for Treo Pro, Treo 800w
Connect and charge
Just $14.95 BUY

More Sync & Charge Solutions
Innocase Crystal
Seidio Innocase Crystal for Treo 800w
Protection that is crystal clear.
Just $24.95 BUY

More Hard Cases
Treo Pro
Treo Pro
Work, Life, Perfectly Balanced
Just $549.95 BUY

More Smartphones
1500 mAh Lithium-ion Battery
Palm 1500 mAh Lithium-ion Battery for Treo Pro
Be prepared with an extra battery.
Just $49.95 BUY

More Batteries
Stereo Headset
Palm Stereo Headset for Treo Pro
Get lost in the music
Just $24.95 BUY

More Hybrid Headsets
Intl Travel Charger
Palm Intl Travel Charger for Treo Pro, Treo 800w
Working or playing abroad? Take this along!
Just $39.95 BUY

More Wall Chargers
Tropic Pouch
Golla Tropic Pouch
New fun designs!
Just $19.95 BUY

More Top Cases
 
 

Copyright 1999-2008 TreoCentral. All rights reserved : Terms of Use : Privacy Policy

TREO and TreoCentral are trademarks or registered trademarks of palm, Inc. in the United States and other countries;
the TreoCentral mark and domain name are used under license from palm, Inc.
The views expressed on this website are solely those of the proprietor, or
contributors to the site, and do not necessarily reflect the views of palm, Inc.

Explore more: The iPhone Blog | WM Experts | Crackberry | CentroSpot | Android Central
Smartphone Accessories: Windows Mobile Accessories | iPhone Accessories | Blackberry Accessories
Fuze Accessories | G1 Accessories | Xperia Accessories | Touch Accessories | Instinct Accessories
Bold Accessories | Blackjack Accessories | HTC Accessories | Centro Accessories | Motorola Q Accessories
Mogul Accessories | Tilt Accessories | Nokia n95 Accessories | Duo Accessories | Verizon XV Accessories
Dash Accessories | Shadow Accessories | Voyager Accessories | Venus Accessories | Touch Accessories
Curve Accessories | Dare Accessories | Venus Accessories | Curve Accessories | Bold Accessories
iPod Nano Accessories | iPod Touch Accessories