* Re: Number formatting in \unit
[not found] <mailman.1183.1323603877.4232.ntg-context@ntg.nl>
@ 2011-12-12 0:14 ` Robin Kirkham
0 siblings, 0 replies; 4+ messages in thread
From: Robin Kirkham @ 2011-12-12 0:14 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1.1: Type: text/plain, Size: 1549 bytes --]
On 11 December 2011, Xenia <yoraxe@googlemail.com> wrote:
> Am 11.12.2011 11:25, schrieb Robin.Kirkham@csiro.au:
>> All,
>>
>> I have put together some suggestions to extend the number formatting
>> capability in \unit, particularly for scientific and engineering purposes,
>> including basic support for tolerances and uncertainties.
>>
>> It is a bit long, so source is attached and a PDF is at
>>
>> http://dl.dropbox.com/u/36891398/units6.pdf
>>
>> Of course, this is just my opinion, so I welcome any feedback from the list.
>
> I like your suggestions. Especially the current handling of `e-23` etc.
> is not intuitive but rather confusing and does not meet the standard.
>
> I do not know if there is already a solution for automatically
> shortening the number of digits in the output, but that would be nice, too.
>
> Xenia
Yes, I thought about that, of course, but did not put it forward because to do it properly the correct numeric rounding/significant figures rules should be applied, and that I guess means the Lua code needs to interpret the number, rather than just treat it as a sequence of digits.
However if the Lua code did interpret the number into an internal format it would enable other things like normalisation to scientific or engineering form, etc. However the internal format would have to support arbitrarily long numbers and exponents ... Lua's built-in internal number format (a double precision float, I think) would not do, so there would be a bit of coding involved.
Robin
[-- Attachment #1.2: Type: text/html, Size: 3177 bytes --]
[-- Attachment #2: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Number formatting in \unit
2011-12-11 10:25 ` Robin.Kirkham
2011-12-11 11:24 ` Xenia
@ 2011-12-11 15:42 ` Marco
1 sibling, 0 replies; 4+ messages in thread
From: Marco @ 2011-12-11 15:42 UTC (permalink / raw)
To: ntg-context
On 2011-12-11 <Robin.Kirkham@csiro.au> wrote:
> Automatic thousands grouping (again with some style
> variants)
> My main objection is that one seems to have to insert
> thousands separators into the input oneself, which is
> rather unnatural; Context could and should do this
> itself.
+1
Marco
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Number formatting in \unit
2011-12-11 10:25 ` Robin.Kirkham
@ 2011-12-11 11:24 ` Xenia
2011-12-11 15:42 ` Marco
1 sibling, 0 replies; 4+ messages in thread
From: Xenia @ 2011-12-11 11:24 UTC (permalink / raw)
To: mailing list for ConTeXt users
Am 11.12.2011 11:25, schrieb Robin.Kirkham@csiro.au:
> All,
>
> I have put together some suggestions to extend the number formatting
> capability in \unit, particularly for scientific and engineering purposes,
> including basic support for tolerances and uncertainties.
>
> It is a bit long, so source is attached and a PDF is at
>
> http://dl.dropbox.com/u/36891398/units6.pdf
>
> Of course, this is just my opinion, so I welcome any feedback from the list.
I like your suggestions. Especially the current handling of `e-23` etc.
is not intuitive but rather confusing and does not meet the standard.
I do not know if there is already a solution for automatically
shortening the number of digits in the output, but that would be nice, too.
Xenia
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
* Number formatting in \unit
[not found] <746538930812A54DA07A768D52329470020EE17448@exvic-mbx01.nexus.csiro.au>
@ 2011-12-11 10:25 ` Robin.Kirkham
2011-12-11 11:24 ` Xenia
2011-12-11 15:42 ` Marco
0 siblings, 2 replies; 4+ messages in thread
From: Robin.Kirkham @ 2011-12-11 10:25 UTC (permalink / raw)
To: ntg-context
[-- Attachment #1: Type: text/plain, Size: 417 bytes --]
All,
I have put together some suggestions to extend the number formatting
capability in \unit, particularly for scientific and engineering purposes,
including basic support for tolerances and uncertainties.
It is a bit long, so source is attached and a PDF is at
http://dl.dropbox.com/u/36891398/units6.pdf
Of course, this is just my opinion, so I welcome any feedback from the list.
Best,
Robin
[-- Attachment #2: units6.tex --]
[-- Type: application/x-tex, Size: 8070 bytes --]
[-- Attachment #3: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2011-12-12 0:14 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <mailman.1183.1323603877.4232.ntg-context@ntg.nl>
2011-12-12 0:14 ` Number formatting in \unit Robin Kirkham
[not found] <746538930812A54DA07A768D52329470020EE17448@exvic-mbx01.nexus.csiro.au>
2011-12-11 10:25 ` Robin.Kirkham
2011-12-11 11:24 ` Xenia
2011-12-11 15:42 ` Marco
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).