Display trend plus the value with more than two digitts

How would I make this to show more than two digits?

type: custom:auto-entities
card:
  type: entities
  title: Financial
filter:
  include:
    - entity_id: sensor.yahoofinance_eurusd_x
      options:
        entity: this.entity_id
        style: |
          :host {
            --paper-item-icon-color: {% set value=state_attr(config.entity,"trending") %}
                                    {% if value=="up" -%} green
                                    {% elif value=="down" -%} red
                                    {% else %} var(--paper-item-icon-color))
                                    {% endif %};