Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. C#
  4. Regarding code for decimal to ASCII

Regarding code for decimal to ASCII

Scheduled Pinned Locked Moved C#
help
5 Posts 3 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • P Offline
    P Offline
    praveenkumar palla
    wrote on last edited by
    #1

    Hi Help me to convert a decimal value to a 1 byte of ASCII data if decimal is '40'-- ASCII is'(' Thanks in advance Praveen Kumar Palla

    M P 2 Replies Last reply
    0
    • P praveenkumar palla

      Hi Help me to convert a decimal value to a 1 byte of ASCII data if decimal is '40'-- ASCII is'(' Thanks in advance Praveen Kumar Palla

      M Offline
      M Offline
      Mohib Sheth
      wrote on last edited by
      #2

      Example :: int i = 40; char c = (char)i; Output :: ( So.. Thats how you do it :)

      ------------------------------------------------------------------ Life would have been much easier if I had the source-code!!

      P 1 Reply Last reply
      0
      • P praveenkumar palla

        Hi Help me to convert a decimal value to a 1 byte of ASCII data if decimal is '40'-- ASCII is'(' Thanks in advance Praveen Kumar Palla

        P Offline
        P Offline
        PandemoniumPasha
        wrote on last edited by
        #3

        you can use type casting. see the following example: int i=40; char c = (char)i; hope this helps

        regards :)

        P 1 Reply Last reply
        0
        • M Mohib Sheth

          Example :: int i = 40; char c = (char)i; Output :: ( So.. Thats how you do it :)

          ------------------------------------------------------------------ Life would have been much easier if I had the source-code!!

          P Offline
          P Offline
          praveenkumar palla
          wrote on last edited by
          #4

          Thanks for the reply Swader

          1 Reply Last reply
          0
          • P PandemoniumPasha

            you can use type casting. see the following example: int i=40; char c = (char)i; hope this helps

            regards :)

            P Offline
            P Offline
            praveenkumar palla
            wrote on last edited by
            #5

            Thanks for the reply

            1 Reply Last reply
            0
            Reply
            • Reply as topic
            Log in to reply
            • Oldest to Newest
            • Newest to Oldest
            • Most Votes


            • Login

            • Don't have an account? Register

            • Login or register to search.
            • First post
              Last post
            0
            • Categories
            • Recent
            • Tags
            • Popular
            • World
            • Users
            • Groups