Jump to content

Formato de numero


bytemania
 Share

Recommended Posts

o problema é o "."; possivelmente a app está a procura de uma virgula em vez de ponto. Uma hipotese, menos elegante, é:

Double.Parse("-7.45677".Replace(".","," ))

que retorna o double -7,45677

O problema deve estar ligado a questões de globalização e pelo System.Globalization e System.Globalization.CultureInfo, deve haver alguma solução (ou não)....

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...

Important Information

By using this site you accept our Terms of Use and Privacy Policy. We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.