question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

toInt doesn't convert numbers to integer

See original GitHub issue
🦄 2.3:toInt
float ask(call(get('toInt'),2.3))
2.3
🦄 

Dear Contributor,

This task has evolved a bit. Please read the comments to find out the latest description.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:15 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
czerwinskilukasz1commented, Jul 17, 2020

@czerwinskilukasz1

Regarding the tests;

the math dir has it’s own _tests_ dir - is it sufficient to have test coverage for toInt there, or is it also necessary to have test coverage in askscript/_tests_ ?

Great question. It’s always better to have a few more tests but in case of this resource it will be enough to just write tests in math.
The reason I asked for tests in askscript/__tests__ in a ticket with one of the operators was that an operator was attached to the resource, so I wanted the tests to verify that both the resource and an AskScript-like way of using operators work.

1reaction
RichardM99commented, Jul 16, 2020

@czerwinskilukasz1

I can take this one as per your suggestion.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Convert a Python String to int
There are several ways to represent integers in Python. In this quick and practical tutorial, you'll learn how you can store integers using...
Read more >
Why doesn't the int() function convert a float to integer while ...
If you cast this string to a float first and then you cast it into a integer, it will work. Save this answer....
Read more >
Convert string to integer in Python
In Python an strings can be converted into a integer using the built-in int() function. The int() function takes in any python data...
Read more >
Python String to Int, Int to String
Converting String to int from different base ... This exception occurs if the string you want to convert does not represent any numbers....
Read more >
Python Convert String to Int – How to Cast a String in Python
To convert, or cast, a string to an integer in Python, you use the int() built-in function. The function takes in as a...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found