Strings in a text file

Source: Internet
Author: User
A string like this (is this binary ?) How can it be changed to a string like 0.44322344322344, 0.44322344322344, 0.44444444444444, 0. 46... bytes (is this binary ?)

How can I change
0.44322344322344, 0.44322344322344, 0.44444444444444, 0.45421245421245, 0.46031746031746, 0.46153846153846, 0.45421245421245

Reply content:

A string like this (is this binary ?)

How can I change
0.44322344322344, 0.44322344322344, 0.44444444444444, 0.45421245421245, 0.46031746031746, 0.46153846153846, 0.45421245421245

It starts with 0x and has a letter in the middle. If it is a number, it is obviously a hexadecimal number.
Binary is 0101. Okay.
In addition, the visual test is a very large number. js converted the result to 6.47481608675229e + 82.
How can I change to a floating point number smaller than 1 when the 10th power is 82?
If you want to ask the php hexadecimal to decimal method, you can use the hexdec or base_convert function.
Hexdec ($ hex_string)
Base_convert ($ hex_string, 16, 10 );

It's not clear what the subject means. This is a hex string, but you need to know what it represents first.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.