Re: "Larrabee" GPU design question.



On Fri, 13 Feb 2009 08:55:41 +0100, Terje Mathisen <"terje.mathisen at
tmsw.no"> wrote:

Quadibloc wrote:
But I would like to have both the decimal point *and* the comma, for
typing lists of numbers separated from each others by commas. Perhaps
that key would have to generate a semicolon in Norway. Or a period,
since programming languages like BASIC may not be switchable to
Norwegian customization. (Although spreadsheets do conform to local
language rules nowadays.)

That's the real crux of the matter:

Even though written reports and spreadsheets insists on me using , and ;
instead of . and , all my programming languages use US rules.

This is a constant source of trouble when I'm writing out fp data from a
program, and the results are supposed to be imported into a spreadsheet.
:-(

At least in terms of comma and period difference, there is a solution.
Even if your program uses English locale for its constant etc, you can
set your output locale to what ever you want and get commas instead of
period if you want it. All libraries obey this setting. Changing the
output of your programs is relatively easy. In terms of comma vs
semi-columns to separate numbers, I'm not sure whether there is an
international setting for that but it's much easier to format your
output strings for a number separator.
Just a very small example:

#include <stdio.h>
#include <locale.h>

void main()
{
double f = 3.1415926;
char* l;

printf("%.16g\n", f);

l = setlocale(LC_ALL, "German");
printf("%s\n", l);
printf("%.16g\n", f);
}
.



Relevant Pages

  • Re: Entourage Email; Adding Email Addresses Issue
    ... In the annoying little box for entering email addresses, you can separate ... email addresses with commas. ... Author of _Powerful PowerPoint for Educators_ ... When I want to manage the addresses in an email message, Entourage forces me ...
    (microsoft.public.mac.office.entourage)
  • Re: Distinguished Name in AD
    ... a distinguishedname contains commas to separate the different levels in the DN ... Using a LDAP querty tool, we notice that all our users (including new ones ... The backslash is causing the application to quit resolving the DN after the \. ...
    (microsoft.public.windows.server.active_directory)
  • Re: American semicolons
    ... Americans 'only use ";" to separate two things that would otherwise ... individually qualify as full sentences'. ... would normally be separated by commas but contain commas as below. ...
    (alt.usage.english)
  • Re: Report from Binsey
    ... I've got all the browsers loaded on the one pc (IE, Firefox, Netscape, Opera...).... ... you don't need a separate pc for each browser! ... The other for documents and email and programming. ... I'd be a perfect replacement for John Hodgman on the Mac ads. ...
    (uk.local.cumbria)
  • RE: DE-Concatenate but maintain relationship and record structure
    ... FROM tblMakes, tblMakesWheels, tblWheels ... but some of these are also multiple values separated by commas. ... I need to separate all cells that have multiple values separated by commas ...
    (microsoft.public.access.queries)