how to make input long decimal point parameter?

Moderators: grovkillen, Stuntteam, TD-er

Post Reply
Message
Author
dony71
Normal user
Posts: 16
Joined: 25 Apr 2018, 20:01

how to make input long decimal point parameter?

#1 Post by dony71 » 01 May 2018, 01:46

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;      

Post Reply

Who is online

Users browsing this forum: Ahrefs [Bot] and 91 guests