开发者

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

开发者 https://www.devze.com 2022-12-28 18:15 出处:网络
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.

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

精彩评论

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