How to reverse a number as an integer and not as a string?

前端 未结 19 2036
名媛妹妹
名媛妹妹 2020-12-14 03:29

I came across a question \"How can one reverse a number as an integer and not as a string?\" Could anyone please help me to find out the answer? Reversal should reverse the

19条回答
  •  北荒
    北荒 (楼主)
    2020-12-14 03:41

    You can't. Since the computer thinks in hexadecimal in any case, it is necessary for you to tokenise the number into Arabic format, which is semantically identical to the conversion to string.

提交回复
热议问题