Ok.. so i have this function in c:
and this as example.bmx
The result showld be 5.0000...
but it is something like this:
2.1252855428782069e-314
am i missing something!?
#include <math.h> double bbMax2(double values[], int count) { double result = values[0]; int x; for (x = 0; x < count; x++) { if (values[x] > result) result = values[x]; } return result; }
and this as example.bmx
SuperStrict Import "example.c" Extern Function Max2:Double(values:Double[], count:Int) = "bbMax2" EndExtern Local array:Double[] = [3:Double, 5:Double] Print Max2(array, array.length)
The result showld be 5.0000...
but it is something like this:
2.1252855428782069e-314
am i missing something!?