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.

Another case of Float

See original GitHub issue

Hi, so I noticed another case of the exercise expecting a Float instead of a Double

Tuple Section

def assignVariablesTuples(res0: String, res1: Int, res2: Float) {
    val student = ("Sean Rogers", 21, 3.5)
    val (name, age, gpa) = student

    name should be(res0)
    age should be(res1)
    gpa should be(res2)
  }

If the expected user input should be Floats, then it should probably be specified in the readme or in each exercise.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:12 (11 by maintainers)

github_iconTop GitHub Comments

1reaction
idarlingtoncommented, Jun 27, 2016

@raulraja no problem, I resolved this with @rafaparadela in the gitter channel. Thanks.

0reactions
raulrajacommented, Jun 27, 2016

@idarlington feel free to reopen this if the issue continues after using your ownGITHUB_TOKEN

Read more comments on GitHub >

github_iconTop Results From Across the Web

Handle equal case in float comparison - Stack Overflow
In this case there is nothing wrong with testing equality of two floating point values. Two float/double values can be equal, ...
Read more >
Floating-point arithmetic - Wikipedia
In computing, floating-point arithmetic (FP) is arithmetic that represents real numbers approximately, using an integer with a fixed precision, ...
Read more >
can I use the float type as a case selector type???
Hey Jim, I'm not sure about using float as the selector type but you could simply use a menu ring as the input...
Read more >
How to test if one float is an integer multiple of another?
What is the best way to test if one floating point number is an integer multiple of another floating number? e.g. I want...
Read more >
15. Floating Point Arithmetic: Issues and Limitations — Python ...
Floating -point numbers are represented in computer hardware as base 2 ... In the case of 1/10, the binary fraction is 3602879701896397 /...
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