emirkljucanin
emirkljucanin

Reputation: 814

c# culture info conversion

I need a way in c# or javascript to convert any input user has entered into invariant culture. So if user enters 2,5 or 2.5 I wan't to convert it to decimal as 2.5. Is there any way of doing this except of string.replace(",",".") ? :D Thanks

Upvotes: 1

Views: 596

Answers (1)

Andrei Andrushkevich
Andrei Andrushkevich

Reputation: 9973

try to use Masked Input Plugin for you input field

Upvotes: 1

Related Questions