Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Causes Divide by Zero Error #17

Closed
nonkit opened this issue May 1, 2017 · 1 comment
Closed

Causes Divide by Zero Error #17

nonkit opened this issue May 1, 2017 · 1 comment
Assignees
Labels
Projects
Milestone

Comments

@nonkit
Copy link
Owner

nonkit commented May 1, 2017

With Small Basic v1.2, Shapes causes divide by zero error (as follows) when to draw rectangle.

Attempted to divide by zero. 

at System.Decimal.FCallDivide(Decimal& d1, Decimal& d2) 
at Microsoft.SmallBasic.Library.Primitive.Divide(Primitive divisor) 
at Microsoft.SmallBasic.Library.Primitive.op_Division(Primitive primitive1, Primitive primitive2) 
at _SmallBasicProgram.math_cartesiantopolar() 
at _SmallBasicProgram.shapes_calcrotatepos() 
at _SmallBasicProgram.normalizepos() 
at _SmallBasicProgram.waittoreleases() 
at _SmallBasicProgram.domenu() 
at _SmallBasicProgram.doobject() 
at _SmallBasicProgram._Main()
@nonkit nonkit added the bug label May 1, 2017
@nonkit nonkit added this to the Version 2.2b milestone May 1, 2017
@nonkit
Copy link
Owner Author

nonkit commented May 1, 2017

Fixed.

@nonkit nonkit closed this as completed May 1, 2017
@nonkit nonkit self-assigned this May 1, 2017
@nonkit nonkit added this to Done in Shapes May 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Development

No branches or pull requests

1 participant