the comma is a true error, and shouldn’t be there. Is this a backend template issue, or a frontend bug. We simply need the actual value, not some formatting of that if that’s what’s happening)
using an template-entity-row card does show the correct format:
If it’s the other way round in your locale, maybe your browser locale settings are incorrect?
Edit - just to clarify…
One million = 1,000,000
Four and a half = 4.5
Three thousand, four hundred and twenty-two and three-quarters = 3,422.75
When you look at how the last one is written in words, you can see where the comma comes from in the representation in numbers. The ‘.75’ would be said here as ‘point seven five’ (as in decimal point).
if anything, this is new to 118? The numbers have always been displayed without this formatting.
at least not on this side, even though my profile language is in English and has always been like that.
(with ‘my language setting’ as referenced a few posts above I didn’t mean the HA setting (which is in English), but my native speaking/writing language (Dutch) …)
understand. apparently not system wide, given the screen I posted
So are you telling me the format of the more-info, which shows the actual values of the sensor, can’t be shown in the Frontend, as is?
I agree, I find long numbers much easier to read when they’re ‘properly’ formatted.
I guess it shows my ignorance a little though that I didn’t realise other locales did format numbers differently. I suppose because when you program stuff the language is always done in American English, so it’s only really the spelling of colour that’s different, but a float or a double is always represented with a decimal point (full stop) so I never considered it past that point, and even then when your formatting things for display you do something like format(output, Locale.getLocale) and just presume that it will turn out right (like displaying right-to-left where appropriate, or putting mm/dd/yy for Americans and dd/mm/yy for normal people )
So yeah, I guess they didn’t quite get something right here, but it definitely looks better to me.
Interesting you should use this example, because it’s the exact issue I’m currently running in to…
(using Discogs integration, numbers showing up as ‘1,997’ for a currently playing album released in 1997, etc…) but yeah, let’s display years in this home automation system with commas in them, that makes perfect sense.