com.r3corda.contracts / kotlin.String / percent

percent

val String.percent: PercentageRatioUnit

For the convenience of writing "5".percent Note that we do not currently allow 10.percent (ie no quotes) as this might get a little confusing if 0.1.percent was written. Additionally, there is a possibility of creating a precision error in the implicit conversion.