Re: [q-lang-users] Bug?
Brought to you by:
agraef
From: Albert G. <Dr....@t-...> - 2007-04-19 21:34:51
|
Eddie Rucker wrote: > sprintf "%g" 1+3 > => "4" > sprintf "%g" 1*3 > => "1"*3 > > Is this a bug? Nope. :) sprintf "%g" 1 => "1", and "1" happens to be a Char which is an enumeration type, thus "1"+3 is the third successor of "1", which (in Unicode as well as in ASCII) is "4". Q is a sharp knife, you know... ;-) Albert -- Dr. Albert Gr"af Dept. of Music-Informatics, University of Mainz, Germany Email: Dr....@t-..., ag...@mu... WWW: http://www.musikinformatik.uni-mainz.de/ag |