Let's say I have the following values:
var upSize = 365308443361.28;
var downSize = 351897407979.52;
var size = upSize/downSize;
In PHP, I can do this:
number_format(size, 3);
and the output will be: 1.038
How can I do the same in C # with string.Format ()?
source
share