地理坐标如何转为int型呢?
uwp吧
全部回复
仅看楼主
level 2
WBTHL147 楼主
地理坐标是double型,但我调用的一个API只能接受int型的。
试过强制转换,但是不行
An exception of type 'System.Runtime.Serialization.SerializationException' occurred in mscorlib.ni.dll but was not handled in user code
Additional information: There was an error deserializing the object of type UWP_Weather.Models.RootObject. The value '915.89' cannot be parsed as the type 'Int32'.
有人知道怎么解决吗?
2017年05月01日 10点05分 1
level 10
先贴上代码吧
2017年05月01日 12点05分 3
level 7
不明觉厉
2017年06月10日 13点06分 5
1