Quantcast
Channel: Programming (In-game)
Viewing all articles
Browse latest Browse all 645

How do I divide with MyFixedPoint

$
0
0
I'm trying to divide one MyFixedPoint number by another (I want the ratio of current cargo volume to total cargo volume) and I just realized the struct is missing DivideSafe. Is there any way to divide and still keep them in the MyFixedPoint format, or do I have to bite the bullet and extract the values to doubles?

This is for a programmable block script, if that wasn't clear.

Thanks.

-BC

Viewing all articles
Browse latest Browse all 645

Latest Images

Trending Articles



Latest Images