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: Rik
Subject: [Octave-bug-tracker] [bug #36278] Sprintf %d bugs
Date: Thu, 14 Mar 2013 16:03:34 +0000
User-agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:19.0) Gecko/20100101 Firefox/19.0

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

Could someone with Matlab test definitively what is done for input arguments
which exceed the '%d' range?


sprintf ('%d', 1.3e15)
sprintf ('%ld', 1.3e15)


For Octave on a 64-bit architecture, the first sprintf is negative (wrong)
while the second is correct.


    _______________________________________________________

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]