Linked Questions

0 votes
1 answer
3k views

From hex to float - Javascript [duplicate]

I am trying to convert a hex string to a float number in Javascript. Suppose that I have the hex string "0082d241". Using this online converter and selecting Swap endianness, the correct float value ...
kots's user avatar
  • 1
0 votes
0 answers
49 views

Javascript: Parsing Double [duplicate]

Possible Duplicate: Converting hexadecimal to float in javascript I am trying to parse Hex Value which is actually a hex representation of c++ double value. I tried lot of things to convert/parse ...
Naegsh Pachorkar's user avatar
585 votes
66 answers
963k views

Random color generator

Given this function, I want to replace the color with a random color generator. document.overlay = GPolyline.fromEncoded({ color: "#0000FF", weight: 10, points: encoded_points, ...
n00ki3's user avatar
  • 15k
5 votes
3 answers
4k views

NodeJS - Convert hexadecimal to float

That may sound like a weird struggle and actually easy to do, but I cannot find a working way to convert an hexidecimal in a string format into a float. My exemple is for instance: 406ea716 If I ...
mentinet's user avatar
  • 784
0 votes
1 answer
5k views

Javascript hexadecimal number validation using regular expression

My function should return true if the hexa number is valid using regular expressions note: hexadecimal numbers may contain a point(.) for decimals (example: 2E6.A3) Hexadecimal: 0 1 2 3 4 ...
madpitbull's user avatar
1 vote
2 answers
841 views

Convert hexadecimal to 32 float in javascript

I have this function in php that would convert hexadecimal to 32 float in php. How do you do it in Javascript public static function hexTo32Float($val) { $packed=pack("H*",$val); $reversedpac=...
bring2dip's user avatar
  • 885
3 votes
2 answers
499 views

Converting fractions into hexadecimal

Say you had a number (28.5) and you needed to convert it into hexadecimal. 28 would be 1C, and 29 would be 1D, but what would 28.5 be? Could you even convert that? I'm asking this because I'm ...
McKayla's user avatar
  • 6,979
-1 votes
1 answer
403 views

reading float values from binary file (in after effects script)

I have a binary file containing data recorded using a c program. the data stored in files are float values. Now I need to retrieve the float numbers from binary file in after effects script. This is ...
Saeed Shahriyari's user avatar
2 votes
1 answer
246 views

Convert a number (also float) to a hexadecimal and vice-versa

I'm trying to create two functions: the first one that converts a number (also float) to a hexadecimal string and the second one that does the vice versa. This is my code: function base10ToBase16(...
marielle's user avatar
  • 484
1 vote
1 answer
126 views

Extract number form a hexadecimal dataFrame parseInt()ParseFloat()

Im trying to parse the data coming from some sensors, The data I recive is a hexadecimal number f.e.: '450934644ad7a38441' I want to extract the last 8 characters, that are the value for temperature ...
Luis urrechaga's user avatar