Where does the decimal point value arises from?

前端 未结 0 921
半阙折子戏
半阙折子戏 2020-11-30 14:33

I have tried using this trick from another thread in latest Ruby, and I got this strange result:

class Numeric
    def percents
        \'%s%%\' % (self * 100         


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