The simplest solution was found tens years before the first computer was invented. They just use reduction "руб." & "коп."