Skip to content

newlib占用Flash空间过大 #32

Closed
@cxeo

Description

@cxeo

描述一下这个bug / Describe the bug

对字符串 string使用 string.toFloat()会编译报错
而string.toInt()则正常

复现步骤 / To Reproduce

用 String 定义一个浮点数,然后使用.toFloat()进行转换

String a="10.234";
Serial.println(a.toFloat());

只用这两行代码就会编译报错。

预期的行为 / Expected behavior

修复

截图 / Screenshots

日志 / Logs

系统 / System

win10

软件版本 / Version

Arduino IDE 2.1.0

验证

  • 检查该问题是否已被提过 / Check that there isn't already an issue that reports the same bug to avoid creating a duplicate.
  • 提供了最小可复现工程或详细的复现步骤,确保开发者可以复现 / The provided reproduction is a minimal reproducible example of the bug.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions