Page 1 of 1

how to make input long decimal point parameter?

Posted: 01 May 2018, 01:46
by dony71
Hi All,
I'm new to this ESPeasy plugin programming and needs some help
I want to have long decimal point parameter input
I have this code below, but only can show 2 decimal points
I need parameter input which has 8 decimal point, like 116.60206820
Anybody can help how to do?

Code: Select all

    case PLUGIN_WEBFORM_LOAD:
      {
        addFormTextBox(F("Parameter A"), F("plugin_135_PARA"), String(Settings.TaskDevicePluginConfigFloat[event->TaskIndex][0]), 8);
        addUnit(F("116.6020682"));
        success = true;
        break;
      }
      
    case PLUGIN_WEBFORM_SAVE:
      {
        Settings.TaskDevicePluginConfigFloat[event->TaskIndex][0] = getFormItemFloat(F("plugin_135_PARA"));
        success = true;
        break;