Skip to content
Snippets Groups Projects
Commit d8083948 authored by Patrick Meidl's avatar Patrick Meidl
Browse files

minor improvements to to_string*() methods

parent b2e28a16
No related branches found
No related tags found
No related merge requests found
......@@ -76,7 +76,13 @@ sub score {
sub to_string {
my $self = shift;
return sprintf('%-10s%-10s%-5f', $self->source, $self->target, $self->score);
return sprintf('%-10s%-10s%-5.6f', $self->source, $self->target, $self->score);
}
sub to_string_compat {
my $self = shift;
return join(" ", $self->source, $self->target, $self->score);
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment