mIRC Home    About    Download    Register    News    Help

Print Thread
#270465 02/07/22 03:22 AM
Joined: Dec 2021
Posts: 35
T
Ameglian cow
OP Offline
Ameglian cow
T
Joined: Dec 2021
Posts: 35
When I execute this command:

//echo >> $bytes( 21474836,k3).suf
>> 20.4MB

Should it not be returning the value in KB?


. : Machine-Gun script named Bauderr with Trio-ircproxy.py : .
TrioAshburry #270467 02/07/22 01:56 PM
Joined: Jul 2006
Posts: 4,150
W
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 4,150
The conversion you're asking for needs more than 3 digits, if you remove the '3' parameter, you can see mIRC returning the correct 20,971.51953KB.

The number you are passing as the first parameter and the second parameter where you want KB value but also want a 3 digits result are mutually exclusive.


#mircscripting @ irc.swiftirc.net == the best mIRC help channel

Link Copied to Clipboard