Home Creators Posts Import Register Favorites Logout
haven't archived this post yet. have a subscription? use the importer!

Content

Hi everyone!

This is the second part of the short series dedicated to floating-point arithmetic. After a lengthy introduction, this post shows how to go beyond the limitations of float, double and decimal types.

On top of giving a few tips, it comes with a C# script that allows to greatly improve the precision of the existing types. While not perfect, it is a good compromise compared to much slower C# libraries. You can download the library here.

I am more than happy to hear your thoughts on this, especially if you have any other ideas on how to improve the precision of real numbers in your games!

πŸ§”πŸ»

Files

Previews only

Improving Floating-Point Precision in C# - Alan Zucconi

This tutorial continues the journey to understand floating-point arithmetic, and how to improve the precision of modern programming language types. At the end of this article, you will find a link to download a simple C# library that provides a new type which improves the precision of traditional and variables.

Comments

No comments found for this post.