Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,7 @@ public class NotificationRenderer
/// </summary>
private static string FormatCurrency(decimal amount)
{
// The OrderPlacedEvent.TotalAmount is transmitted in cents (integer
// representation) to avoid floating-point precision issues across
// service boundaries. Convert back to dollars for display.
var dollars = amount / 100m;
return dollars.ToString("C2");
return amount.ToString("C2");
}

public string RenderOrderConfirmation(OrderNotification notification)
Expand Down