Strange problem with decimals

I have the following expression:
([Sucursal Id].[Recargo Tarjeta])/100

When dividing by 100 it doesnโ€™t show me the decimal part, so if the value is 15, instead of 0.15 it shows 0.
This has never happened to me before and I assume there is a mistake of mine that I am not seeing. But, the source of the data is of type โ€œNumberโ€, the Virtual column where I use it, was of type โ€œNumberโ€ and I also tried with type โ€œDecimalโ€ with 2 decimal digits and it still gives me 0 as a result.
I enclosed with parentheses, to separate the terms well.
What can be the mistake?

Solved Solved
0 4 429
1 ACCEPTED SOLUTION

Hi @Alfredo_Pou
Check this out

View solution in original post

4 REPLIES 4

[decimals]/[decimals]=decimals
[Number]/[decimals]=Number

Hi @Alfredo_Pou
Check this out

Try with ([Sucursal Id].[Recargo Tarjeta])/100.00

Steve
Platinum 4
Platinum 4
Top Labels in this Space