this seems like a simple fix but I’m stuck.
I have a list of values ex: 8564899 that should be displayed as 85,648.99 and NOT 8,564,899.
If I can’t convert to currency. I would just like to cut the last two values off.
Any assistance is appreciated. Thank you!
I’ve tried the following solutions:
FORMAT(Value, 'F')
ROUND(Value, 2)
STR(Value, 7, 2)
CONVERT(DECIMAL(7,2), Value)
3
Answers
Maybe like this to cut the value
Convert to string
And insert the ‘.’ on the position in the string that you want
I would suggest:
This should also work if Value is stored as a string/text/(var)char.
If you need specific locale formatting look at the docs for FORMAT.