ThreadBoard ArchivesSite FeaturesActiveworlds SupportHistoric Archives |
Standards on register price? (Sdk)
Standards on register price? // Sdkstrike rapierJul 12, 2004, 3:13pm
Hey Folks,
Does anyone know if there is a standard on the format for the monthly / yearly citizenship costs in the SDK / Universe? Ive noticed when I've been playing with Eclipse's Uni report that in some situations the uniserver gives a $ / £ figure before, and sometimes it does not (ie: AW). Does anyone know what this is MEANT to be? I am guessing logic would say its meant to have a currency unit so different countries can use it but I need to decide if I should throw in a $ into the formatting of the report... Ideas, anyone? - Mark Yes I've thought of only including it if no other currency symbols are present r i c h a r dJul 12, 2004, 7:45pm
Isn't it just the entry in the universe ini file.
http://www.activeworlds.com/help/uniserver_registration.html For example if you entered $19.95 then the SDK would return the $ AW_UNIVERSE_REGISTRATION_CHARGE being a string.. But i guess if its not defined then its just the defaults used on the transaction rather than a specified currancy. xelagJul 13, 2004, 1:39pm
The xelagot man doesn't know really, but since it is a string, I guess
you can add the currency symbol: € 9,99 (with the internationally used comma :) Alex (XelaG) Xelagot Man On 12 Jul 2004 14:48:16 -0400, "ksg" [View Quote] >erm that Xelagot guy will know, sorry ive forgot his name [View Quote] sweJul 13, 2004, 9:13pm
comma isn't internationally used >_< only them strange europeans use it (by
strange, i mean the germans and french!) eveyrone else uses .s! :) -SWE [View Quote] xelagJul 13, 2004, 10:20pm
Wrong.
I was brought up in Uruguay and Argentina in the 50s-60s. We use the comma there. When I came to live in Europe (Netherlands) in the 70s up to now, the comma we use here too. When I was in the USSR in the 70s, they used the comma there too. The strange Europeans you mention are probably strange to you because of recent events: no more french fries in the USA! I personally prefer the decimal point. But what the heck :) Alex [View Quote] >comma isn't internationally used >_< only them strange europeans use it (by >strange, i mean the germans and french!) eveyrone else uses .s! :) > > -SWE > [View Quote] strike rapierJul 14, 2004, 2:23am
[View Quote]
Everyone must prefer the decemal point, or how the hell are you meant to
tell the difference between 1,000 and 1.000? Standards people! I dont give a damned what you think you should all conform to MY STANDARDS! - MR strike rapierJul 14, 2004, 3:04am
Ive got one thing to say to:
> I was brought up in Uruguay and Argentina in the 50s-60s. We use the > comma there. http://zetech.swehli.com/dontcryforme.mid ^^ CLICK HERE BEFORE READING ^^ Its bloody annoying, I think its rather strange When I try to interpret, these currencies you sendd And that I still need to use val( ) despite all that ive done Yet wont compile for meeeee All you will see is Buffer overflow, Although masked in ASM Which of course is rather poo I think the coders should sue! I dont have to accept standards, my codes dont av' to change I couldent spend my entire life based on feeeel Looking in the IDE, looking for the bug So I chose a breakpointtt Running around trying watches now But nothing works at alll Id never expeect a sodding format, id never expect at all... .... I feel like cryin' cause of argentina The truth is your a painnn in the asss All though these dark days, of sodding coding... You make my life harddd So commas keep your distanceeee Have I ranted to much? Theres nothing more I can think of to say to you But all you have to do is change your 'global options' and get rid of your formatting pooooooooooo ... So DONT CRY FOR ME MR. CODER! The TRUTH is im HERE TO HAUNT YOU Though EVERY PROJECT In YOUR EXISTANCE I'll make your code screeeewed As a wise coder once told me, he was shouded in fame make your programs compatable, or hang your head in shame Other people may seem like illusions But those illusions you will see Dont pay your bloody wages So they might as well go go away... So they might as well go awayy... [ SOOOOOOOOO DONT CRY FOR ME MR. CODER! THE TRUTH IS IM HERE TO HAUNT YOU THROUGH EVERY PROJECT IN YOUR EXISTANCE I'LL MAKE YOUR CODE SCREWWWWED ] repeat and fade out... Copyright Mark Randall (2004) c pJul 14, 2004, 3:13am
LMAO this is the best post ever! hah shut him right up :) you may be smart,
you may know allot, but when it comes to being nice Alex your lost...you;v told me off before in beta ng for asking a simple question about version features...now that's not very nice :) I didn't know how to say it myself, but mark said it perfectly :) lol im in tears laughing at that song, mark you should go into the music business [View Quote] c pJul 14, 2004, 4:01am
btw this is with no offense to Alex, :) ur great, but hey sometimes yaw
gotta know when to suck it up and let sum1 else be right (even if their completely wrong) [View Quote] xelagJul 14, 2004, 9:03am
Nice :)
[View Quote] >btw this is with no offense to Alex, :) ur great, but hey sometimes yaw >gotta know when to suck it up and let sum1 else be right (even if their >completely wrong) [View Quote] kfJul 14, 2004, 10:01am
There is, of course, also an ISO norm for this, it is the 31-0 as of
1992. It applies to all technical documents (when you write privately, you can, naturally, as well use eg. the assyrian stone carving symbols or Roman digits): The decimal seperator is the COMMA and has to be used in all ISO documents. However, in _english_language_ texts, it is also ALLOWED to use the POINT (unless they are english ISO documents). It is, BTW, NOT allowed to start a digit with the decimal character, so values like .5 or ,5 are incorrect (correct is 0.5 or 0,5). The thousands seperator, however, is neither comma nor point nor upper comma (as in Switzerland for example), but a SPACE, eg. as in 123 456 789. In this regard, threemillion fourhundredthousand twohundredtwentyseven and 87/100 would be written as: ISO international = 3 400 227,87 non-ISO english language = 3 400 227.87 FOUR digit years, page references and such shall be written without seperators, eg. 2004-07-14 or Page 1234. :-) [View Quote] xelagJul 14, 2004, 10:57am
http://united-states.asinah.net/american-encyclopedia/wikipedia/s/si/si.html
[View Quote] >There is, of course, also an ISO norm for this, it is the 31-0 as of >1992. It applies to all technical documents (when you write privately, >you can, naturally, as well use eg. the assyrian stone carving symbols >or Roman digits): > >The decimal seperator is the COMMA and has to be used in all ISO >documents. However, in _english_language_ texts, it is also ALLOWED to >use the POINT (unless they are english ISO documents). >It is, BTW, NOT allowed to start a digit with the decimal character, so >values like .5 or ,5 are incorrect (correct is 0.5 or 0,5). > >The thousands seperator, however, is neither comma nor point nor upper >comma (as in Switzerland for example), but a SPACE, eg. as in 123 456 >789. > >In this regard, threemillion fourhundredthousand twohundredtwentyseven >and 87/100 would be written as: > >ISO international = 3 400 227,87 >non-ISO english language = 3 400 227.87 > >FOUR digit years, page references and such shall be written without >seperators, eg. 2004-07-14 or Page 1234. > >:-) > > > [View Quote] xelagJul 14, 2004, 11:37am
The problem becomes accute really when parsing strings. For xelagot
and AW related applications, I decided to adopt the UK/US convention of the dot as decimal separator, because it is the standard used by AW, also for text SEQ files and RWX files. This caused, in the begining, problems for users in many countries, where the computer locale uses the comma as decimal separator: numbers in files were being read wrongly and numbers in strings were being parsed wrongly. Luckily, Delphi has a solution: your application can define it's own decimal separator, so all my programs start with Application.UpdateFormatSettings := False; DecimalSeparator := '.'; This solved the problem for me :) I do not use the thousands separator at all in my programs. Using a space would be very difficult, as it is used mostly as a normal word separator. The same goes for the comma. Alex [View Quote] >There is, of course, also an ISO norm for this, it is the 31-0 as of >1992. It applies to all technical documents (when you write privately, >you can, naturally, as well use eg. the assyrian stone carving symbols >or Roman digits): > >The decimal seperator is the COMMA and has to be used in all ISO >documents. However, in _english_language_ texts, it is also ALLOWED to >use the POINT (unless they are english ISO documents). >It is, BTW, NOT allowed to start a digit with the decimal character, so >values like .5 or ,5 are incorrect (correct is 0.5 or 0,5). > >The thousands seperator, however, is neither comma nor point nor upper >comma (as in Switzerland for example), but a SPACE, eg. as in 123 456 >789. > >In this regard, threemillion fourhundredthousand twohundredtwentyseven >and 87/100 would be written as: > >ISO international = 3 400 227,87 >non-ISO english language = 3 400 227.87 > >FOUR digit years, page references and such shall be written without >seperators, eg. 2004-07-14 or Page 1234. > >:-) > > > [View Quote] xelagJul 14, 2004, 11:53am
Another problem with parsing numbers in strings is the E, as for
example used in AW coordinates. In scientific notation, the E is part of a number, for example, 1.2345e-10. So what I do when parsing coordinates is test for the presence of E and e at the end of a number before extracting the number. Alex sweJul 14, 2004, 12:20pm
well, i lived in england, then moved to libya, and they use commas in both
places! all arab countries use commas! :) plus, the chineese and indians (actually, i'm not sure about the chineese and indians) so, that's more then half the world, hahaahaha! -SWE [View Quote] xelagJul 14, 2004, 12:47pm
The fact, SWE, is that there are two main systems in use for the
decimal separator. As programmer, you need to take this into account, or your programs may only work on some locales and not on others. I shared my experience with Delphi, maybe VB and C programmers can now tell us how they solve this? Alex [View Quote] >well, i lived in england, then moved to libya, and they use commas in both >places! all arab countries use commas! :) plus, the chineese and indians >(actually, i'm not sure about the chineese and indians) so, that's more then >half the world, hahaahaha! > > -SWE sweJul 14, 2004, 2:00pm
wow O_O my post took a long time to get posted O_O
ok, didn't quite get the post, but doesn't matter, i'm always right! ^_^ -SWE [View Quote] strike rapierJul 14, 2004, 3:13pm
baronJul 14, 2004, 4:18pm
In article <gacaf0h9k5q963gt5107im3dgdrplnsr4o at 4ax.com>,
xelag at digitalspace.com says... > The problem becomes accute really when parsing strings. For xelagot > and AW related applications, I decided to adopt the UK/US convention > of the dot as decimal separator, because it is the standard used by > AW, also for text SEQ files and RWX files. This caused, in the > begining, problems for users in many countries, where the computer > locale uses the comma as decimal separator: numbers in files were > being read wrongly and numbers in strings were being parsed wrongly. > Luckily, Delphi has a solution: your application can define it's own > decimal separator, so all my programs start with > > Application.UpdateFormatSettings := False; > DecimalSeparator := '.'; > > This solved the problem for me :) > > I do not use the thousands separator at all in my programs. Using a > space would be very difficult, as it is used mostly as a normal word > separator. The same goes for the comma. > > Alex > I suppose there are simmilar ways to solve this in every language like format in VB, fwiw when needed I get and use the client's decimal separator (and other regional settings) through windows api by calling GetLocaleInfo. -- ../B strike rapierJul 16, 2004, 4:53pm
Of course as far as maths goes... there is a reason we use the decemal point
in uh... the decimal system... However thats not the only reason: the comma is the matrix array denoter seperating 2 or more items in a linear matrix such as (1, 2, 3) which of course could be used to represent 3D coordinates... As for the space as a thousand delim, I always thought that was shere madness to include whitespaces in a single entity... a , you can just do a string replace on and delete the ","... but with a " " you dont even know where to begin parsing the number unless you spend absolutly ages trying to create inventive ways to tell where one thing ends and another thing starts... I can just about live with non-iso english... but I prefer this: 3,400,227.87 at least for when I am actually doing math... Damn the ISO! Noone wants you anyway and everyone should use DD/MM/YY[YY] for dates or even better: DDD DD MMM, YY[YY] (see, matrices delimiter seperating 2 entities). Anyway... moving onto more interesting things... we have 1000 seperators in decimal... what are the equivilents in hex? hehe - Mark R Your all going to hate me now for my none-conformance... TOUGH! ?:-) [None conformant smiley - it has a wavey ? hair on it) [View Quote] |