Skip to content
Discussion options

You must be logged in to vote

In this case you would need to use an output converter (in the/each module being evaluated) to convert Decimal values to strings:

output {
  renderer {
    converters {
      [Decimal] = (it) -> it.toString()
    }
  }
}

Note that this is inherited when amending modules.

Also, the toString() method is implicitly called when interpolating values into strings, eg.

decimalString = "\(someDecimalValue)"

It's also worth noting #923 as a gotcha; this doesn't currently apply when joining Lists/Listings.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@DamianReeves
Comment options

Answer selected by DamianReeves
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants