Results 1 to 2 of 2

Thread: Increase a decimal number storing in hexadecimal

  1. #1
    Junior Member
    Join Date
    May 2008
    Answers
    1

    Increase a decimal number storing in hexadecimal

    Is there a way to store a decimal number in hexadecimal in order to increase its number of decimal positions? For instance, I have a variable 99999.99 but I would like to store in hexadecimal but with at least 5 decimal positions like 99999.99999?

    Best regards,

    Rafael Mazzeo


  2. #2
    Contributing Member
    Join Date
    May 2007
    Answers
    85

    Re: Increase a decimal number storing in hexadecimal

    The answer is 'yes.'

    How you do it depends on the language you're asking about. You didn't specify that.

    The common languages are assembler, clist, rexx, c, shell scripting or COBOL. I'm assuming COBOL since that's the skill level of this site.

    Simply use the MOVE to move the dec variable to hex. The system automatically handles the case translation.

    If you're asking about a specific language, please let me know and I'll get more specific.


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact