Unix Technical Forum

hardcoded decimal point '.'

This is a discussion on hardcoded decimal point '.' within the pgsql Hackers forums, part of the PostgreSQL category; --> NUMERIC data type is hardcoded to use '.' as the decimal point. FLOATs are in fact hardcoded the same ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > pgsql Hackers

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-11-2008, 02:10 AM
Sergey Anpilov
 
Posts: n/a
Default hardcoded decimal point '.'

NUMERIC data type is hardcoded to use '.' as the decimal point.
FLOATs are in fact hardcoded the same way (they use strtod() and sprintf()
while pgsql's LC_NUMERIC is always "C").
The only data type that localizes decimal point is MONEY.

it makes many problems when the decimal point is not '.' (for example, ',').

is it a bug or a feature?

---------------------------(end of broadcast)---------------------------
TIP 3: if posting/reading through Usenet, please send an appropriate
subscribe-nomail command to majordomo@postgresql.org so that your
message can get through to the mailing list cleanly

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 11:27 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com