search

Home  >  Q&A  >  body text

Android能够存储整形,数组资源有integer-array标签,如果是float类型的数组,怎么存储?

float类型的数组怎么在资源文件中存储

天蓬老师天蓬老师2772 days ago660

reply all(2)I'll reply

  • PHP中文网

    PHP中文网2017-04-17 17:36:21

    1. If you know the accuracy, you can do this. For example, save 1.234, multiply it by 1000 first, and then divide it by 1000 when needed.

    2. Save String type directly

    reply
    0
  • 天蓬老师

    天蓬老师2017-04-17 17:36:21

    Add 1 above. Just save the String type directly and then convert it

    reply
    0
  • Cancelreply