MCPcopy Create free account
hub / github.com/FlaxEngine/FlaxEngine / RoundTo2DecimalPlaces

Method RoundTo2DecimalPlaces

Source/Engine/Utilities/Utils.cs:77–80  ·  view source on GitHub ↗

Rounds the floating point value up to 2 decimal places. The value. The rounded result.

(float value)

Source from the content-addressed store, hash-verified

75 /// <param name="value">The value.</param>
76 /// <returns>The rounded result.</returns>
77 public static float RoundTo2DecimalPlaces(float value)
78 {
79 return (float)Math.Round(value * 100) / 100;
80 }
81
82 /// <summary>
83 /// Rounds the floating point value up to 3 decimal places.

Callers 5

DrawAxisMethod · 0.80
FormatBytesCountMethod · 0.80
OnContextMenuMethod · 0.80
UpdatePreviewValueMethod · 0.80

Calls 1

RoundMethod · 0.45

Tested by

no test coverage detected