How can you create a generic struct for Numeric numbers that can calculate a percentage?

前端 未结 0 924
野性不改
野性不改 2021-01-15 20:51

This doesn\'t compile because Initializer \'init(_:)\' requires that \'Number\' conform to \'BinaryInteger\'

struct Percentage

        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题