strange float question !
why 1-f =0.00
what lead to it ?
Hey strengthstrong,
Do you mind sharing relevant code? We need more information.
Cheers,
Håkon.
float r = 0, g = 0, b = 0;
int i = (int) fmod((p_hsb_h / 60), 6);
NRF_LOG_RAW_INFO("i= %d\r\n",i);
float f = (p_hsb_h / 60) - i;
float r = 0, g = 0, b = 0; int i = (int) fmod((p_hsb_h / 60), 6); NRF_LOG_RAW_INFO("i= %d\r\n",i); float f = (p_hsb_h / 60) - i;
With this relationship should be