What’s the best way to create a percentage value from two integers in C#? August 12, 2023 by Tarik How about just mappedItems * 100.0 / totalItems and casting this to the appropriate type?