f <- nFunction(
fun = function(x='numericScalar') {
z <- 1e300
returnType(double(0))
return(z)
})
cf <- nCompile(f)
Warning message:
In compile_generateCpp(code$args[[2]], symTab) :
probable complete loss of accuracy in modulus
This occurs because value %% 1 doesn't handle large magnitudes in compile_generateCpp.
I will work out a fix.