Skip to content

Extend String to print 64-bit integers #156

Open
@drws

Description

@drws

String(long long int) and String(unsigned long long int) are not defined for relevant platforms, so String() is unable to parse 64-bit integers. A minimal non-working example would be:

#include <Arduino.h>

void setup() {
  String(1LL); // String(1L) compiles
}

void loop() {
}

Which produces an error call of overloaded 'String(long long int)' is ambiguous.

Activity

drws

drws commented on May 19, 2022

@drws
Author

This has been solved lately in the arduino-esp32.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @drws

        Issue actions

          Extend String to print 64-bit integers · Issue #156 · arduino/ArduinoCore-API