Hey everyone ^^

I'm making a little program that gathers the player coordinates from World of Warcraft via memory reading, the only problem I'm having so far is that I have no idea how to convert my hexes to floats, and it's honestly driving me nuts :P.

http://i53.tinypic.com/2rhs1zo.png <-Picture

As you can see, as a float the value is "-8371,0859375"
but since my program isn't converting it, im getting "3322072152" instead

Process[] Arch = Process.GetProcessesByName("Wow");
Memory.OpenProcess(Arch[0].Id);
uint XCoordinate = uint.Parse("8BCBE8", System.Globalization.NumberStyles.HexNumber);
label4.Text = Memory.Read<uint>(Memory.BaseAddress + XCoordinate).ToString();

uint ZCoordinate = uint.Parse("901E3C", System.Globalization.NumberStyles.HexNumber);
label7.Text = Memory.Read<uint>(Memory.BaseAddress + ZCoordinate).ToString();

any idea on how i can convert this?

Kind Regards
-Jazerix
thank you for reading :)

Edited 5 Years Ago by Jazerix: n/a

Haha it was actually super easy

uint ZCoordinate = uint.Parse("901E3C", System.Globalization.NumberStyles.HexNumber);
label7.Text = Memory.Read<uint>(Memory.BaseAddress + ZCoordinate).ToString();

uint ZCoordinate = uint.Parse("901E3C", System.Globalization.NumberStyles.HexNumber);
label7.Text = Memory.Read<float>(Memory.BaseAddress + ZCoordinate).ToString();

can you see the difference xD?

This question has already been answered. Start a new discussion instead.