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

Floating point exception #7207

Closed
k1attila12 opened this issue Dec 9, 2020 · 3 comments
Closed

Floating point exception #7207

k1attila12 opened this issue Dec 9, 2020 · 3 comments
Labels
Feature/Enhancement Request This issue is made to request a feature or an enhancement to an existing one.

Comments

@k1attila12
Copy link

k1attila12 commented Dec 9, 2020

How can i handle this type of exception ?

fn main() {
  mut i:=2.0
  for {
    i=i*i
    println(i)
  }
}

or

s:=""
for {
  s= s+"aaa'
}
@k1attila12 k1attila12 added the Feature/Enhancement Request This issue is made to request a feature or an enhancement to an existing one. label Dec 9, 2020
@k1attila12
Copy link
Author

in c
setjmp longjmp

other higher level languages
try
except .....

@dumblob
Copy link
Contributor

dumblob commented Dec 9, 2020

Support for floating point operations and the overall floating point ecosystem is very immature in V - see #5180 (comment) and vlang/vtl#2 .

@k1attila12
Copy link
Author

I think
It is not about floating point.
It is about how to handle for without try except end

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature/Enhancement Request This issue is made to request a feature or an enhancement to an existing one.
Projects
None yet
Development

No branches or pull requests

2 participants