开发者

Converting double[][] in to float[][]

I was wondering if there is a way of converting a double [][] in to a float[][] in Java? I currently have a for loop in my code that does this and am looking for a better and cleaner way.

Any ide开发者_开发问答as would be appreciated, Thanks,


There's no quicker way. Also note that not every double value will convert to a float - the range of a float is smaller.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜