c# - Saving prices with different languages -
in our application can switch default language. have prices products. wondering best way persist prices database.
we in holland use comma decimal seperator, americans use dot decimal seperator.
in form have 2 textboxes: 1 whole numbers , 1 decimals. have situation in first textbox have value 2 , in other have 00 (so have 2 euro , 0 cent). when save database, stores 200.00.
what have store 2.00 instead of 200.00?
we store amount cents. when retrieving amount database divide amount 100 culture info of user.
Comments
Post a Comment