Good shooting once again.  The error was introduced by a fix where (#: y) sometimes produced an extra leading 0.

Fixed for next beta/release.

Henry Rich

On 7/19/2018 9:55 PM, Bill Heagy wrote:
JVERSION
Engine: j806/j32/linux
Beta: GPL3/2018-07-18T21:38:57
Library: 8.05.14
Platform: Linux 32
Installer: unknown
InstallPath: /home/wheagy/tmp/jbld/j32
Contact: [email protected]
(or j64nonavx)


max    =: >./@:|@,
bits   =: ] (1 >. ] + [ >: 2x&^@]) <.@(2&^.)@(1&>.)
abase1 =: #:~ $&2@bits@max

NB. under "floating point"
(#: -: abase1) x=:o._500+?1000

This fails for o.0, i.e. if ?1000 gives 500.

(Why just test for one random value, and not the whole range?)

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm


---
This email has been checked for viruses by AVG.
https://www.avg.com

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to