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.
精彩评论