-
-
Notifications
You must be signed in to change notification settings - Fork 625
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
feat: error handling and array expansion #2474
Conversation
} | ||
|
||
if (!Number.isFinite(currentValue) || Number(currentValue) < -1 || Number(currentValue) > 1) { | ||
return ErrorValueObject.create(ErrorType.VALUE); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
View Deployment
|
return ErrorValueObject.create(ErrorType.VALUE); | ||
} | ||
|
||
const result = Math.atan2(Number(currentValue1), Number(currentValue2)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please check the PR title and test errors, and make sure it passes all CI (except Univer Merge Assistant, which is manually triggered by our QA) |
} | ||
|
||
if (typeof value !== 'number' || value < -1 || value > 1) { | ||
return ErrorValueObject.create(ErrorType.VALUE); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please refer to the second step to complete the internationalization content, refer to https://univer.ai/guides/sheet/customization/formula#how-to-implement-the-formula, just like adding
When you enter the formula, you can trigger the auto-completion, which means that the internationalization content has been added successfully. |
close #2425
Pull Request Checklist