From 6fe80ad52cb0901a639c3a1e14aed2b51e3c737e Mon Sep 17 00:00:00 2001 From: cbt24 Date: Wed, 29 Mar 2017 10:46:18 +1300 Subject: [PATCH] Fixed speed displayed in table view #story [17] --- src/main/java/seng302/Model/Boat.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/seng302/Model/Boat.java b/src/main/java/seng302/Model/Boat.java index 371ba522..0c273a52 100644 --- a/src/main/java/seng302/Model/Boat.java +++ b/src/main/java/seng302/Model/Boat.java @@ -21,7 +21,7 @@ public class Boat { */ public Boat(String name, double velocity, String abbrev) { this.velocity = velocity; - this.velocityProp = new SimpleStringProperty(String.valueOf(velocity* 1.94384)); + this.velocityProp = new SimpleStringProperty(String.valueOf(Math.round(velocity))); this.abbrev = abbrev; this.name = new SimpleStringProperty(name); }