1 registered members (AndrewAMD),
1,248
guests, and 6
spiders. |
Key:
Admin,
Global Mod,
Mod
|
|
|
Re: Zorro beta test announcement
[Re: Damocles_]
#390783
01/04/12 17:11
01/04/12 17:11
|
Joined: May 2007
Posts: 2,043 Germany
Lukas
Programmer
|
Programmer
Joined: May 2007
Posts: 2,043
Germany
|
WTF? Zorro uses double, a floating-point variable for keeping money? So if I have a big amount of money, and get 5 cents, I still have the same amount of money because of the limited precision?
I don't care how much money I'd really have to have for that to happen, I'd rather use a 64bit integer keeping the amount of money I have in cents. That way I can always be sure my money can't be destroyed by the effects of floating points and still have up to 92,233,720,368,547,758.07€ (if it's signed). Also, I'm pretty sure banks don't use floating point variables.
|
|
|
Re: Zorro beta test announcement
[Re: Lukas]
#390785
01/04/12 17:26
01/04/12 17:26
|
Joined: Apr 2007
Posts: 3,751 Canada
WretchedSid
Expert
|
Expert
Joined: Apr 2007
Posts: 3,751
Canada
|
Agreed with Lukas, floating point variables, even double precision, just aren't for book keeping There are some excellent libraries out there for keeping track of values without the loss of precision (for example in boost)
Shitlord by trade and passion. Graphics programmer at Laminar Research. I write blog posts at feresignum.com
|
|
|
Re: Zorro beta test announcement
[Re: jcl]
#390903
01/05/12 19:09
01/05/12 19:09
|
Joined: Dec 2008
Posts: 1,218 Germany
Rackscha
Serious User
|
Serious User
Joined: Dec 2008
Posts: 1,218
Germany
|
If it were a matter of personal taste, I would also rather use a 32.32 fixed point variable for money. But this would not be appreciated by other people who want to do serious financial math. Zorro must follow the standard of professional finance APIs, and can not care about Lukas' or my dislike of floating point variables. Ah now thats where the important money goes in the wolrd: Eaten by floating point precision . Seriously, have you a link to some financial Api manual? Would like to take a look into that ._. PS: For use, we have to register an account AND put money online? is zorro theoretical to test? Need a bit more ninformation o.O
MY Website with news of my projects: (for example my current Muliplayer Bomberman, GenesisPrecompiler for LiteC and TileMaster, an easy to use Tile editor) Sparetime-Development
|
|
|
Re: Zorro beta test announcement
[Re: jcl]
#391303
01/10/12 10:45
01/10/12 10:45
|
Joined: Apr 2008
Posts: 650
Sajeth
User
|
User
Joined: Apr 2008
Posts: 650
|
This SO looks like a scam - count me in!
Edit: "You'll reveice the program by email in about 2 weeks." Oh jcl you little rascal, you gave me hardwood.
Last edited by Sajeth; 01/10/12 18:03.
Teleschrott-Fan.
|
|
|
|