-1
Guys I’m developing an application in C# with API. It will query and shows the result. Simple thing. But in one of my methods it returns the height of the guy without comma. It comes for example like this: 175.
Can someone help me put a comma in the middle there ? I’m pretty layabout in the C language#
Thanks
var json = JObject.Parse(result);
pessoa.altura = (string)json["height"];
In short: it gives you the result in centimeters and you want in meters?
– Woss
That’s right. Summed up well. kkk
– Artur Mafezzoli Júnior
This depends on how you are storing it. If you store centimeters, it will return centimeters. Then just apply a conversion to meters, but before it is good to have full knowledge of the domain of your data
– Jefferson Quesado
@Jeffersonquesado I save everything in string, It’s a small app.
– Artur Mafezzoli Júnior