It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Bug in NumberFormat.getNumberInstance with GERMAN Format Edited

Is there a bug in confluence? I use this code in scriptrunner:

import java.text.DecimalFormat
import java.text.NumberFormat

def locale = new Locale("de","DE"); //The same with Locale.GERMAN

double doubleValue = 12345.67d
DecimalFormat format = (DecimalFormat)NumberFormat.getNumberInstance(locale)
String formattedValue = format.format(doubleValue); 

It returns on confluence 6.14.2: 12.345,67 (CORRECT)

And in Confluence 7.0.4: 12,345.67 (WRONG!)

Both have the same java locale. Whats wrong?

2 answers

1 accepted

0 votes
Answer accepted

ok, Upgrade auf Confluence +7.1 fixed it.

0 votes


what Confluence version are you using? 7.4 is not released. Latest is 7.2.1.



Sorry, I mean: 7.0.4

Suggest an answer

Log in or Sign up to answer
Community showcase
Published in Confluence Cloud

Convert your old pages to the new editor

Hey Community 👋, Following the recent release of the new editor, we will be releasing the ability for users to convert existing pages from the legacy editor to the new editor. We’ve been resp...

1,999 views 21 16
Read article

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you