- Home /
How to print Byte 1101010 version of a float?
I have to print a binary version of some vertex positions to check that there are no rounding errors, because the D3D top left fill implementation of the rasterizer is giving me tiny rendering errors, i have to check if my vertices are wrong. They print right, but i want to check thoroughly.
How can i print bitwise, in Js and in Cs?
Thankyou.
Answer by Jonny-Roy · Aug 18, 2014 at 08:02 PM
// a is an Array of Bytes var a=BitConverter.GetBytes(1.0f);
That's how to do it in C# I think it's the same in JS pretty much.
Oh ok, import System; thanks. when i try to print it it just writes "system.Byte[]", how do i print it?
this var hg : String = Convert.ToBase64String(byteArray);
prints things like this
AtdJJA==
Your answer
Follow this Question
Related Questions
Debug.Print not working 3 Answers
Debug Vertices? 1 Answer
print(); to console problem - beginner 0 Answers
Debug.log,print not working when run from mobile android 0 Answers
Reading the profiler log 0 Answers