mcd-level-1 question 176 discussion

View all MuleSoft Certified Developer - Level 1 (Mule 4) Exam here
back to mulesoft forum

Question 176

What is the correct way to format the decimal 200.1234 as a string to two decimal places?

  • C. 200.1234 as String as format: ".0#"
  • D. 200.1234 as string {format: ".0#"}
Answer:

B


Explanation:
Correct answer is 200.1234 as String {format: ".0#"} . Rest all options are not syntactically correct.

User Votes:
C 1 votes
50%
D 9 votes
50%
Discussions
0 / 1000
galibakravan
7 months, 1 week ago

A, B option not visible in question.
if Answer is B, then B value should be "200.1234 as String {format: ".0#"}