6 Replies Latest reply on Jun 6, 2008 1:35 PM by 807591

    Typecasting int to String

    807591
      Hi,

      I have a bunch of int variables that I need to typecast to a String in order to send over a modem. I don't mean simply converting to ASCII (1 => "1") but a proper bit-by-bit cast, e.g.

      65 =>
      00000000 00000000 00000000 01000001 =>
      four-byte string "(NUL)(NUL)(NUL)A"

      Google has failed me on this, so I'm assuming either it's trivial, or barely anyone ever needs to do it!

      Any help would be appreciated.

      Thanks,

      Ian