LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 07-01-2005, 08:35 AM   #1
jht2k
LQ Newbie
 
Registered: Aug 2004
Distribution: Ubuntu
Posts: 5

Rep: Reputation: 0
Question gnome-calculator - converting between numeric bases (eg hex to binary)


Hi,

I'm trying to work out how, using gnome-calculator in Gnome 2.10, to convert between different number bases - for example hex to binary.

What I need is to enter a number in a certain base (such as 3F hex) into the calculator and press a button which immediately displays the representation of that number in a different base (such as binary). This works in the Windows calculator, but doesn't work in gnome-calculator - nothing happens upon pressing 'bin' or 'dec' or 'hex'. I've read numerous posts saying that this is possible but none that actually say how to do it.

Thanks in advance for any help,

Jon
 
Old 07-01-2005, 09:00 AM   #2
TruckStuff
Member
 
Registered: Apr 2002
Posts: 498

Rep: Reputation: 30
1) Make sure you are in Scientific mode (View > Scientific mode)

2) Select your desired base system by clicking the appropriate radio button below and to the right of the "screen"

3) Punch in the number you wish to convert

4) Click the base system you wish to convert this number to.

So to convert 3F in hex to decimal, I click the "Hex" radio button, key in "3F", then click the "Dec" radio button, and it displays the result "63".
 
Old 07-01-2005, 09:12 AM   #3
jht2k
LQ Newbie
 
Registered: Aug 2004
Distribution: Ubuntu
Posts: 5

Original Poster
Rep: Reputation: 0
Very odd - the way you describe is how I would expect it to work (as with Windows Calculator).

However, this gnome-calculator (Ubuntu 5.04, Gnome 2.10), doesn't change the contents of the display when I press one of the 'bin', 'oct', 'dec', 'hex' radio buttons after entering a number.

Possibly a distro or gnome version specific problem? Feedback or ideas very much appreciated.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to convert a float to its binary or hex representation in Python? zero79 Programming 1 09-01-2005 10:19 AM
How to convert a float to its binary or hex representation in Python? zero79 Linux - Software 1 08-29-2005 09:30 PM
Binary to Hex Ascii converter carboncopy Slackware 1 05-28-2004 09:09 AM
C, converting hex to text Sm0k3 Programming 2 10-11-2003 04:29 AM
converting fake hex to decimal in c acid_kewpie Programming 10 08-20-2003 02:29 PM


All times are GMT -5. The time now is 07:21 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration