In my code i write the following line:
return ((value / 120) * 1440).ToString();
Now this returns me 0 when the value in value is less than Zero because it treats the result of (value / 120) as an integer where as i need C# to treat this result as float is there any way to achieve this?
Example:
If Value = 80
Then,
This function returns me 0 whereas i want this function to return me 960
1 Answer