Properly formatted large numbers

Alex Tweedly alex at tweedly.net
Wed Feb 10 04:58:31 EST 2010


Michael Lew wrote:
> Dear Listers
>
> I'm working on some statistical simulations and regularly get output numbers
> with anything from 1 to 7 digits. They are hard to read when they don't have
> the conventional commas separating the thousands and millions. I've written
> a simple function that does the comma formatting for me but it mucks up
> sorting. Of course. (I'm using a datagrid to display the results and live
> sorting is really handy.)
>   
I've not yet used a datagrid, so this is a guess ....

can you supply a custom sort function ? Something like

function testLessThan p1, p2
replace comma with empty in p1
replace comma with empty in p2
return p1 < p2
end testLessThan

-- Alex.



More information about the use-livecode mailing list