Skip to content

Changing decimal separators in Java #1

@MafiusKity

Description

@MafiusKity

I made my first program in Java with some features and managed to get it running, but there is one detail that bothers me greatly:

When providing a float or double number to the program, I must use , as the decimal separator (the standard for my country), and it returns numbers of these types with . as the decimal separator. I am used to using both, but I would like to know how to standardize the decimal separator for both number inputs and outputs to avoid future confusion in other programs.

Source repository form program: https://github.com/MafiusKity/JavaTreining

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentationhelp wantedExtra attention is neededquestionFurther information is requested

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions