I use the code below to convert the file size in bytes (the test file is 31718 bytes) to KB (30.974609375 KB), but I want to map this to one decimal place (i.e. 30.9 KB). How can I do this in VB.NET?
New FileInfo(FileName).Length / 1024
thanks
Scott
source
share