You may or may not have stumbled over attributes in the Metamodel that are typed with BigDecimal. Like most failure rate values:

If you retrieve values from these attributes, you will receive instances of Java
BigDecimal objects. The main intention of this article is to make you aware and to provide at least the API of these classes. I will add more findings and obstacles over time.
First thing you recognize is that this is not a Java Script number:
var part = ...
var value = part.FailureRate;
// this will show "object"
alert(typeof value);
// this will show "number"
value = 2.0 * value;
alert(typeof value);
Its recommended to use the BigDecimal API instead of switching to the Java Script floating values:
// DONT
var result = 10.0 * value;
// DO
var result = value.multiply(BigDecimal.TEN);
If you have specific questions, please post a comment.
Happy Scripting
Jan