Assign a number value to a letter - Programmers Heaven

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

Welcome to the new platform of Programmer's Heaven! We apologize for the inconvenience caused, if you visited us from a broken link of the previous version. The main reason to move to a new platform is to provide more effective and collaborative experience to you all. Please feel free to experience the new platform and use its exciting features. Contact us for any issue that you need to get clarified. We are more than happy to help you.

Assign a number value to a letter

Hi I was wondering if there is a quick way to Assign a number value to a letter. So for instance if i type 1 an A will appear in the label and if i type 3 three A's will appear in the label. Then once i get to 5 i want to use B then 10 would be C and so forth.

Comments

  • BitByBit_ThorBitByBit_Thor Posts: 2,444Member
    : Hi I was wondering if there is a quick way to Assign a number value
    : to a letter. So for instance if i type 1 an A will appear in the
    : label and if i type 3 three A's will appear in the label. Then once
    : i get to 5 i want to use B then 10 would be C and so forth.
    :

    Easy? Perhaps not, but it'll be cool :)
    I'm currently doubting, how are you assigning a value to a letter? A = 1, B = 5, C = 10.. then what's D? D=15, E=20, etc?
    Depending on whether the value assignments are systematic, it could be simpler than when it's arbitrary.
    But basically this problem comes down to converting a number from one system to another (such as decimal to hexadecimal, or to binary, or octal, or in this case a more custom system).
    Best Regards,
    Richard

    The way I see it... Well, it's all pretty blurry
Sign In or Register to comment.