Problem with that is that $bytes rounds off decimals.
$comma(0.9) would return 1.9, because it rounded 0.9 to 1, and did a $puttok transforming it into 1.9.
There's one other thing, and that is negative numbers will screw up, as $bytes(-100,b) returns -,100
alias comma {
if ($1 !isnum) return
tokenize 46 $1
return $+($iif(-* iswm $1,-),$bytes($abs($1),b),$iif($0 == 2,.),$2)
}
Anyway, you knew this already, but pointing it out still, and I'm sure you'll point something out too :tongue:
Greets