Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

164
Views
Manejo de NSNumberFormatter de decimales de muy alta precisión reducido de Xcode 13

Xcode 12 y anteriores solían poder manejar decimales con muchos más dígitos que Xcode 13. El siguiente código en Xcode 12 y 13 produce resultados muy diferentes:

 let formatter = NumberFormatter() formatter.minimumFractionDigits = 1 formatter.maximumFractionDigits = 16 formatter.usesGroupingSeparator = false formatter.string(from: NSDecimalNumber(string: "1234567890123456.1234567890123456")) // Xcode 12: "1234567890123456.1234567890123456" // Xcode 13: "1234567890123460.0"

Curiosamente, cambiar a usesSignificantDigits alivió el problema, pero en su lugar estoy buscando el comportamiento de maximumFractionDigits en mi característica.

¿Apple volvió a implementar algo que cambia este comportamiento? ¿Qué podemos hacer para recuperar la mayor precisión del formateador Xcode 12?

over 4 years ago · Santiago Trujillo
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!