So I have a C# web api endpoint that returns a C# decimal value which is 49.10. So we return it into a VB.NET webforms application and the return result comes out as 49.1 even though they are both of primitive type decimal.
What really make this issue odd is we have 2 local machines with the same code on each one and on my machine it's returned as 49.10, but on colleagues machine it's returned as 49.1.
Really puzzling situation that cannot seem to get to the bottom of and wondered whether anyone has come across this and knows what I am missing.
C# Model is like this...
[DataContract(Namespace = "")]
[Serializable]
public class TestClaim
{
[DataMember(EmitDefaultValue = false)]
public decimal VoucherSupplementFirstPair { get; set; }
}
VB.NET Model is like this...
<Serializable()>
Public Class TestClaim
Public Property VoucherSupplementFirstPair As Decimal
End Class
The reason I'm asking is because it works on one machine and not on another, so it's like something to do with windows settings maybe?? I thought the CLR would handle something like this.
Thanks for any advise.