Deal of The Day! Hurry Up, Grab the Special Discount - Save 25% - Ends In 00:00:00 Coupon code: SAVE25
Welcome to Pass4Success

- Free Preparation Discussions

Salesforce Exam Salesforce MuleSoft Developer I Topic 5 Question 20 Discussion

Actual exam question for Salesforce's Salesforce MuleSoft Developer I exam
Question #: 20
Topic #: 5
[All Salesforce MuleSoft Developer I Questions]

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

Show Suggested Answer Hide Answer
Suggested Answer: A

Contribute your Thoughts:

Rosita
2 days ago
Option B looks a bit weird to me. Shouldn't the format specifier be after the 'as String' part?
upvoted 0 times
...
Meghann
19 days ago
Hmm, I'm not sure. Maybe Option A is the way to go, since it uses the standard format syntax.
upvoted 0 times
Lou
2 days ago
I think Option A looks correct.
upvoted 0 times
...
...
Rodney
24 days ago
I'm going with Option D. The format specifier should be inside curly braces.
upvoted 0 times
...
Stephaine
26 days ago
Option C looks correct to me. I think the string format should be enclosed in quotes.
upvoted 0 times
Hubert
8 days ago
I think it should be formatted as C) 200.1234 as String as format: \'.0#\'
upvoted 0 times
...
James
9 days ago
I agree, the string format should be enclosed in quotes.
upvoted 0 times
...
Lizette
14 days ago
I think the correct answer is C) 200.1234 as String as format: \'.0#\'
upvoted 0 times
...
...
Willodean
29 days ago
I'm not sure, but I think option C) 200.1234 as String as format: \'.0#\' could also be correct. It looks similar to option A).
upvoted 0 times
...
Leslie
30 days ago
I agree with Alba, option A) seems to be the right choice because it specifies the correct format for two decimal places.
upvoted 0 times
...
Alba
1 months ago
I think the correct way is option A) 200.1234 as string as format: \'.0#\'
upvoted 0 times
...

Save Cancel
az-700  pass4success  az-104  200-301  200-201  cissp  350-401  350-201  350-501  350-601  350-801  350-901  az-720  az-305  pl-300  

Warning: Cannot modify header information - headers already sent by (output started at /pass.php:70) in /pass.php on line 77