These forums have been archived and are now read-only.

The new forums are live and can be found at https://forums.eveonline.com/

EVE Technology Lab

 
  • Topic is locked indefinitely.
 

ISK number format

Author
Fabian en Thielles
The Frog Pond
Ribbit.
#1 - 2013-04-22 07:56:58 UTC
Hey guys,

I've ran into a problem while developing my web application. So, I read the ISK from the cache but it returns numbers like this: 54400 while supposedly in-game it shows up as 5,44. Now I was wondering if this is a correct assumption and if there is any PHP functions or a-like for converting this number to the proper number format. PHP's number_format did not do the job for me. Also, if it really is supposed to look like that, I guess I could write a function myself. Please confirm!

Thanks in advance,

Fabian.
Tonto Auri
Vhero' Multipurpose Corp
#2 - 2013-04-22 11:06:15 UTC
This is so-called "money format", where a number stored and processed as integer, but displayed as float with 4 digits after decimal point.

Two most common elements in the universe are hydrogen and stupidity. -- Harlan Ellison

Fabian en Thielles
The Frog Pond
Ribbit.
#3 - 2013-04-22 11:20:07 UTC  |  Edited by: Fabian en Thielles
Ahh, I see! Thank you! Big smile
Mitome Cobon-Han
Astral Academy
Astral Sanctuary
#4 - 2013-04-23 12:48:02 UTC
Tonto Auri wrote:
This is so-called "money format", where a number stored and processed as integer, but displayed as float with 4 digits after decimal point.


What players see in the game-client, depends on the clients system locale settings.
That's what I see: 54'400.00 ISK
Even with everything set to English in my Eve client.
Tonto Auri
Vhero' Multipurpose Corp
#5 - 2013-04-23 22:17:12 UTC
Mitome Cobon-Han wrote:
Tonto Auri wrote:
This is so-called "money format", where a number stored and processed as integer, but displayed as float with 4 digits after decimal point.


What players see in the game-client, depends on the clients system locale settings.
That's what I see: 54'400.00 ISK
Even with everything set to English in my Eve client.

Your reply is in no way relevant to the original question, or to my answer to it, which you quoted.

Two most common elements in the universe are hydrogen and stupidity. -- Harlan Ellison

Horman Sheridan
ManInSpace Corp.
#6 - 2013-04-30 20:26:02 UTC
But is there a way to tell eve to use "," instead of "."?
Tonto Auri
Vhero' Multipurpose Corp
#7 - 2013-04-30 22:53:47 UTC
First, how is your question even remotely related to this thread?
Second, prefs.ini, decimal= and digit= parameters.

Two most common elements in the universe are hydrogen and stupidity. -- Harlan Ellison

ItsmeHcK1
Immortalis Inc.
Shadow Cartel
#8 - 2013-05-01 09:58:52 UTC
So much anger.