• Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
    Dedicated community for Japanese speakers
  • 한국 커뮤니티
    Dedicated community for Korean speakers
Exit
0

Dividing file size down to MB

LEGEND ,
Aug 14, 2006 Aug 14, 2006

Copy link to clipboard

Copied

I am attempting to divide the file size recorded by File.FileSize. I have
the variable set to the File.FileSize / 1024 (number of kb in a mb). It
displays too large so I changed it to 10240 which seems to make it work
better. But now it seems off again.

A 139512 kb files shows a 13 mb file. I am confused.

To round the number I am using:
#LSNumberFormat(sizeleft,',999.99')#

Is that causing the problem or am I missing something here?

All I want to do is display the file size in Mb down to a 2 decimal place.
Ex: 3.21 MB

--
Wally Kolcz
Developer / Support


TOPICS
Advanced techniques

Views

234

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Aug 14, 2006 Aug 14, 2006

Copy link to clipboard

Copied

LATEST
I realized that it doesn't insert the amount as kilobytes. I adjusted the
amount correctly and now it works fine. 🙂


Votes

Translate

Translate

Report

Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Resources
Documentation