Boriel Basic Forum
INT (fixed) doesn't work (*solved*) - Printable Version

+- Boriel Basic Forum (https://forum.boriel.com)
+-- Forum: Compilers and Computer Languages (https://forum.boriel.com/forumdisplay.php?fid=12)
+--- Forum: ZX Basic Compiler (https://forum.boriel.com/forumdisplay.php?fid=11)
+---- Forum: Bug Reports (https://forum.boriel.com/forumdisplay.php?fid=15)
+---- Thread: INT (fixed) doesn't work (*solved*) (/showthread.php?tid=170)



INT (fixed) doesn't work (*solved*) - britlion - 2010-03-02

Version zxb 1.2.5-r1489

Code:
DIM a as fixed
LET a=3.5
print a
print INT(a)

Returns
3.5
229376

I think it's getting bit converted to a long. If I do cast(fixed,int(a))) I get back 3.5


Re: INT (fixed) doesn't work - boriel - 2010-03-03

Ok, this has been fixed, as it has been the MOD problem.
Please, download this version: <!-- m --><a class="postlink" href="http://www.boriel.com/files/zxb/zxbasic-1.2.5r1489d.msi">http://www.boriel.com/files/zxb/zxbasic-1.2.5r1489d.msi</a><!-- m -->

Check for these and other problems, and tell me.
I think it's time to release version 1.2.5 (stable)
And start developing 1.2.6.

I'm also branching to 2.0. This version will be a complete code-refactorization among other things.


Re: INT (fixed) doesn't work - britlion - 2010-03-05

2.0? ^_^

Thankyou for all the hard work you've put into this little compiler.

As you can tell, I'm a fan :-)


Re: INT (fixed) doesn't work - LCD - 2010-03-05

britlion Wrote:As you can tell, I'm a fan :-)
Not the only one, by the way!