Jake Using your 1489493 example
FormatNumber(fileSize/1000000, 2) gives "1.5" Round(fileSize/1000000, 2) also gives "1.5" Take your pick >From the bottom of Dave's sig VBScript Docs: http://www.davidpenton.com/vbscript cheers ----- Original Message ----- From: "jake williamson" <[EMAIL PROTECTED]> To: "ActiveServerPages" <[EMAIL PROTECTED]> Sent: Thursday, November 07, 2002 4:08 AM Subject: showing file size in meg hello! got this real cool file system thing building at the moment for our clients to log in and download pdf proofs. it's a real small cosmetic thing but i'd like to show the size in 'finder' style. at the moment my code: <% = objFile.Size %> gives me: 1489493 if i do: <% = objFile.Size / 1000 %> to divide it into k i get: 1489.493 when what i really want is: 1.489 or preferably: 1.4 is this gonna be a complete pain or is it dead easy?? thanks out here lads and lass', jake --- You are currently subscribed to activeserverpages as: [EMAIL PROTECTED] To unsubscribe send a blank email to %%email.unsub%% --- You are currently subscribed to activeserverpages as: [email protected] To unsubscribe send a blank email to [EMAIL PROTECTED]
