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

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -