Skip to content

[🐛Bug]: powの値がおかしい #95

@usuyuki

Description

@usuyuki

🐛 概要

	serial.Print("pow(2,3): ")
	serial.PrintDouble(arduino.Pow(2, 3), 6)
	serial.Println("")

pow(2,3): 0.000000

原因

    pow(_Tp __x, _Up __y)
    {
      typedef typename __gnu_cxx::__promote_2<_Tp, _Up>::__type __type;
      return pow(__type(__x), __type(__y));
    }

最適化がうまくwasm3に持ち込むときに機能しない?

備考

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions