You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Sep 3, 2024. It is now read-only.
Describe the bug
When using the lerp function in the calc command with 3 integers passed as arguments it returns an error rather than casting the integers to doubles and evaluating from there
To Reproduce
Steps to reproduce the behavior:
Go to a discord server w/ this bot in it
Type the command ">calc lerp(1,2,3)" or w/ any other combination of integers as arguments
Send the message
This error then appears: "Your calculation threw an error: Unable to cast object of type 'System.Int32' to type 'System.Double'."
Expected behavior
For the correct result of the lerp function to be returned as if the arguments were doubles instead of integers, in the case of lerp(1,2,3) that would be 4
Screenshots
Error
Expected Behaviour
The text was updated successfully, but these errors were encountered:
Describe the bug
When using the lerp function in the calc command with 3 integers passed as arguments it returns an error rather than casting the integers to doubles and evaluating from there
To Reproduce
Steps to reproduce the behavior:
Expected behavior
For the correct result of the lerp function to be returned as if the arguments were doubles instead of integers, in the case of lerp(1,2,3) that would be 4
Screenshots
Error
Expected Behaviour
The text was updated successfully, but these errors were encountered: