Quantcast
Channel: Community | MonoGame - Latest topics
Viewing all articles
Browse latest Browse all 6821

Garbage float doubles tostring

$
0
0

@willmotil wrote:

Does anyone have a good algorithm for converting floats and doubles into characters directly now i found a way to bypass it with longs and ints. With just a straight out modulous routine.

But with doubles and floats the approximated representation screws up the modulous operation at about 1/1000 ths place well about half the time.

Figured maybe someone has done this already and has the algorithm.

Posts: 5

Participants: 4

Read full topic


Viewing all articles
Browse latest Browse all 6821

Trending Articles