octave-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Octave-bug-tracker] [bug #36278] Sprintf %d bugs


From: Michael Godfrey
Subject: [Octave-bug-tracker] [bug #36278] Sprintf %d bugs
Date: Thu, 14 Mar 2013 17:06:08 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:19.0) Gecko/20100101 Firefox/19.0

Follow-up Comment #6, bug #36278 (project octave):

It would be nice if the C library behaved a bit
more reasonably:
octave:1> sprintf ('%d', 1.3e15)
ans = -701153280

could confuse people, particularly if the
results go to someplace other than the screen.

Is it hard and inefficient, to replace the
wrong answer with something like "OVFL"?
This would tend to prevent using the wrong
result as data.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?36278>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]