2015-08-11 8:19 GMT+02:00 David Kastrup <d...@gnu.org>: [...] > > Well, how about something like > > (define (integer-and-fraction nmbr) > (let* ((wh (truncate nmbr)) (rem (- nmbr wh))) > (if (or (zero? wh) (zero? rem)) (format #f "~s" nmbr) > (format #f "~s ~s" wh (abs rem))))) > > (display (integer-and-fraction (/ 1111 7))) > > Of course the disadvantage being that you cannot distinguish between one > and two numbers and cannot read the number back in easily. > > -- > David Kastrup
Will have a closer look later, I'm in a hurry. Many thanks, Harm _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user