Please use 0.0 instead of (double)0.