{#=== OPTIONS ========================================================================================================#}

{% set option = {
    class:        field.class|default(''),
    label:        field.label|default(''),
    placeholder:  field.placeholder|default(''),
    required:     field.required|default(false),
    readonly:     field.readonly|default(false),
    title:        field.title|default(''),
    info:         field.info|default(''),
    errortext:    field.error|default(''),
    min:          field.min|default(''),
    max:          field.max|default(''),
    step:         field.step|default('0.00000001'),
} %}

{#=== INIT ===========================================================================================================#}

{% set attr_number = {
    class:          option.class ~ ' narrow',
    name_id:        key,
    placeholder:    option.placeholder,
    required:       option.required,
    readonly:       option.readonly,
    step:           option.step,
    min:            option.min,
    max:            option.max,
    title:          option.title,
    type:           'number',
    value:          0 + context.content.get(key),
    data_errortext: option.errortext,
} %}

{#=== FIELDSET =======================================================================================================#}

<fieldset class="float">

    <label class="col-sm-3 control-label">{{ (option.info) ? macro.infopop(labelkey, option.info) : labelkey }}</label>
    <div class="col-sm-9">
        <input{{ macro.attr(attr_number) }}>
    </div>

</fieldset>

{#=== OPTIONS ========================================================================================================#}

{% set option = {
    class:        field.class|default(''),
    label:        field.label|default(''),
    placeholder:  field.placeholder|default(''),
    required:     field.required|default(false),
    readonly:     field.readonly|default(false),
    title:        field.title|default(''),
    info:         field.info|default(''),
    errortext:    field.error|default(''),
    min:          field.min|default(''),
    max:          field.max|default(''),
    step:         field.step|default('0.00000001'),
} %}

{#=== INIT ===========================================================================================================#}

{% set attr_number = {
    class:          option.class ~ ' narrow',
    name_id:        key,
    placeholder:    option.placeholder,
    required:       option.required,
    readonly:       option.readonly,
    step:           option.step,
    min:            option.min,
    max:            option.max,
    title:          option.title,
    type:           'text',
    value:          0 + context.content.get(key),
    data_errortext: option.errortext,
} %}

{#=== FIELDSET =======================================================================================================#}

<fieldset class="float">

    <label class="col-sm-3 control-label">{{ (option.info) ? macro.infopop(labelkey, option.info) : labelkey }}</label>
    <div class="col-sm-9">
        <input{{ macro.attr(attr_number) }}>
    </div>

</fieldset>

Convert float inpout from number to text
Convert float inpout from number to text