Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

4
  • thanks i tried that with let a = 0x01459F7F but i am getting.."0x145" "0x9F7F" values is 0x145 and 0x0145 are same...? also i need it in Int not as string..any help Commented May 9, 2018 at 13:36
  • thnaks for that .. how can i get that string value in Int (I need same value though)..? Commented May 9, 2018 at 13:39
  • Yes, 0x0145 is the same value as 0x145, leading zeroes can be ignored. If you want that as an Int, the variables first and second are what your are looking for - I just added Strings to show that they hold correct hex values Commented May 9, 2018 at 13:40
  • Thanks, well I need String values "0x145", "0x9F7F" but i need without quotes so that I can pass those directly ..any ideas.. Commented May 9, 2018 at 13:53