This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

[参考译文] LP-MSPM0L2228:GUI 格式化问题

Guru**** 2390755 points


请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

https://e2e.ti.com/support/microcontrollers/arm-based-microcontrollers-group/arm-based-microcontrollers/f/arm-based-microcontrollers-forum/1433440/lp-mspm0l2228-problem-with-gui-formatting

器件型号:LP-MSPM0L2228

工具与软件:

大家好!

我目前在 GUI Composer 中遇到奇怪的行为。 我有一个变量用作电压基准值、该变量需要是一个至少带有一个小数位并增量为0.1的数字。

当我使用 float 类型时、我在整数部分后得到多个小数位、当我使用 double 类型时、该表达式是正确的、直到我复位 MSPM0、之后我无法再更改该值。

  • 请注意,本文内容源自机器翻译,可能存在语法或其它翻译错误,仅供参考。如需获取准确内容,请参阅链接中的英语原文或自行翻译。

    尊敬的 Davide:

    这可能与 GUI Composer 驱动程序问题有关。

    对于 float、它将使用32位来记录值、而 double 将使用64位。 因此变量的精度是不同的。

    我 认为这不会对用户体验产生太大影响。

    B.R.

    SAL