code: def rubles(amount, zero_for_kopeck=False):
      
      check_positive(amount)
  
      pts = []
      amount = round(amount, 2)
      pts.append(sum_string(int(amount), 1, (u"рубль", u"рубля", u"рублей")))
      remainder = _get_float_remainder(amount, 2)
      iremainder = int(remainder)
  
      if iremainder != 0 or zero_for_kopeck:
          # если 3.1, то это 10 копеек, а не одна
          if iremainder < 10 and len(remainder) == 1:
              iremainder *= 10
          pts.append(sum_string(iremainder, 2,
                                (u"копейка", u"копейки", u"копеек")))
  
      return u" ".join(pts)
docs: Get string for money
  
      @param amount: amount of money
      @type amount: C{integer types}, C{float} or C{Decimal}
  
      @param zero_for_kopeck: If false, then zero kopecks ignored
      @type zero_for_kopeck: C{bool}
  
      @return: in-words representation of money's amount
      @rtype: C{unicode}
  
      @raise ValueError: amount is negative