mIRC Home    About    Download    Register    News    Help

Print Thread
$bytes() #270465 02/07/22 03:22 AM
Joined: Dec 2021
Posts: 7
T
TrioAshburry Offline OP
Nutrimatic drinks dispenser
OP Offline
Nutrimatic drinks dispenser
T
Joined: Dec 2021
Posts: 7
When I execute this command:

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

Should it not be returning the value in KB?

Re: $bytes() [Re: TrioAshburry] #270467 02/07/22 01:56 PM
Joined: Jul 2006
Posts: 3,930
W
Wims Offline
Hoopy frood
Offline
Hoopy frood
W
Joined: Jul 2006
Posts: 3,930
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