[Quantproject-developers] QuantProject/b1_ADT/Collections FloatArrayManager.cs, 1.1, 1.2
Brought to you by:
glauco_1
|
From: Glauco S. <gla...@us...> - 2010-03-27 17:15:13
|
Update of /cvsroot/quantproject/QuantProject/b1_ADT/Collections In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv32384/Collections Modified Files: FloatArrayManager.cs Log Message: A new method double[] ConvertToDouble( float[] valuesToBeConverted ) has been added, to convert an array of floats to an array of doubles Index: FloatArrayManager.cs =================================================================== RCS file: /cvsroot/quantproject/QuantProject/b1_ADT/Collections/FloatArrayManager.cs,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** FloatArrayManager.cs 13 Jul 2007 09:59:07 -0000 1.1 --- FloatArrayManager.cs 27 Mar 2010 17:15:05 -0000 1.2 *************** *** 57,60 **** --- 57,73 ---- } #endregion + + /// <summary> + /// converts the float array to a double array + /// </summary> + /// <param name="valuesToBeConverted"></param> + /// <returns></returns> + public static double[] ConvertToDouble( float[] valuesToBeConverted ) + { + double[] convertedValues = new double[ valuesToBeConverted.Length ]; + for( int i = 0 ; i < valuesToBeConverted.Length ; i++ ) + convertedValues[ i ] = valuesToBeConverted[ i ]; + return convertedValues; + } } } |