Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7951391
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 4, 20262026-06-04T02:32:45+00:00 2026-06-04T02:32:45+00:00

In Polish regional setting decimal separator is , . In english it is .

  • 0

In Polish regional setting decimal separator is ,. In english it is .. Maybe in other languages there are other separators. (Are there?).

I want to use BigDecimal‘s String constructor while reading an input file.
In my file I want to use . as a decimal separator.

How can I ensure that I don’t get NumberFormatException if a decimal separator of environment is not .?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-04T02:32:47+00:00Added an answer on June 4, 2026 at 2:32 am

    The BigDecimal constructor – like Double.parseDouble etc – always uses ‘.’ as a decimal separator. It doesn’t use the current culture at all, nor is there any way to specify a number format.

    (It would be nice if this were clearly documented, admittedly…)

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have txt pipe-delimited file (non-english - given below is Polish, but other langs
I am working on j2me polish 2.1.4 and I want to use LUSH UI
I'm trying to use eclipse encoding UTF-8, for polish characters. Unfortunately, I still have
Greeting, I would like the jqueryui datapicker to use polish localization. Additionally, the dates
I want to make Reverse Polish Notation algorithm, but my code isn't working. Can
I'm converting some Polish<->English dictionaries from RTF to HTML. The Polish special characters are
I have an app I have written for IOS3, but I want to polish
Is there any way to interpret normal mathematical notation into Reverse Polish Notation(RPN)..? eg
Is there a build-in function in SQL Server which return my polish (or any
today's question is about the use of textfields in J2ME Polish for Symbian^3 devices.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.