Cucumber JVM: How do I use a double as an input value?

cucumber, cucumber-junit, cucumber-jvm, regex

Solution

Simple `(.+)` should work

Given I have a floating point 1.2345 number

@Given("^I have a floating point (.+) number$")
public void I_have_a_floating_point_number(double arg) throws Throwable { 
    ... 
}

Problem

For a Behavior test that I'm trying to write, I require inputs that are floating point. How do I set up my gherkin string to look for these values?

Original source