logo SERENITY
Game Systems Foundation
Search Results for

    Show / Hide Table of Contents

    Enum ValueDisplayFormat

    How a numeric value should be rendered as display text.

    Namespace: Serenity.Shared.Utils
    Assembly: Serenity.Shared.dll
    Syntax
    public enum ValueDisplayFormat

    Fields

    Name Description
    DECIMAL

    Fixed to a chosen number of decimal places (e.g. "12.34").

    INTEGER

    Rounded to the nearest whole number (e.g. "1234").

    STOPWATCH

    A duration in seconds, written out as a stopwatch. Which units appear, how they are padded and what separates them come from StopwatchDisplayOptions, and the decimal places from the spec's own precision — so any convention is a combination rather than a named format.

    In this article
    © 2026 Serenity. All Rights Reserved