Hi,
that $bytes suggestion by starbucks is good, though it has problems when using decimals or negative numbers.
For example: $bytes(0.4,b) will return 0, or $bytes(5.8,b) will return 6, or $bytes(-100,b) returns -,100
This alias will cover any number, whether it is decimal, negative, or near zero:
alias commas {
var %min = $iif($left($1,1) == -,-)
tokenize 46 $abs($1)
return $+(%min,$bytes($1,b),$iif($2,.),$2))
}
Usage: $commas(
number)
Grtz