pi and theta working correctly, large decimal base conversion still inaccurate