I'm guessing that it's the code. I tried to do that Y to A conversion once (BobCAD V19) and couldn't figure out the code output ("crazy" results too). I posted a question on the BobCAD forum and never got any answers. It was more or less an experiment, so I eventually gave up.
If you find out how to make it work, I'd love to know how.