• Caterpillar
    Caterpillar
    Blasterreal
    Posts: 40 from 2007/3/30
    Hi, i create simple Fahrenheit / Celcius converter with MUI, But i get little error, i think contents value must be float, how do that via MUI

    Quote:

    switch(id)
    {

    case MUIV_Application_ReturnID_Quit:
    running = FALSE;
    break;

    case CALCULATE:
    {
    float cell;

    get(fahrenText, MUIA_String_Contents, &contents);

    cell =(5.0/9.0) * (contents - 32.0); //ERROR main.c:127: invalid operands to binary -

    set(celciusText, MUIA_String_Contents, cell);

    }
    break;
  • »01.01.23 - 19:43
    Profile Visit Website