Adding m_apm_get_double() and MAPM.toDouble()