Convert Decimal (Percentage) to Fraction in C# .Net

nauna
 
on Sep 27, 2019 12:39 AM
2016 Views

hello,

i am using this solution it works great but today in notice in some cases it fails

Convert percentage (Double) to Fraction using C# in ASP.Net

like 87.50 the fraction should be 7/8 but it is showing 4/5

here is the reference 

https://socratic.org/questions/how-do-you-convert-87-5-as-a-fraction-and-a-decimal

please advice

Download FREE API for Word, Excel and PDF in ASP.Net: Download