I have a float representing a 24 hour period. I want to display it in actual hours and minutes. I began working it out with if statements and dividing the decimal into minutes. But I was wondering if there is a library or math function that already handles this? Thanks.
System.TimeSpan
https://msdn.microsoft.com/en-us/library/system.timespan(v=vs.110).aspx
Note the static ‘From***’ methods like ‘FromMinutes’, ‘FromSeconds’, etc. Use the one that is appropriate for how you store it in your float.