Compile and “True should be a machine-size real number…” Error But when I run your "func1" the result I get is Null. At the moment I use the Return[] statement it falls back to the uncompiled version because "the return types in the Sum statement are different (Compile::cret)"...