// Copyright (c) 2015 - 2023 Doozy Entertainment. All Rights Reserved.
// This code can only be used under the standard Unity Asset Store End User License Agreement
// A Copy of the EULA APPENDIX 1 is available at http://unity3d.com/company/legal/as_terms
using System;
namespace Doozy.Runtime.Common.Extensions
{
/// Extension methods for the double struct
public static class DoubleExtensions
{
/// Round number with the given number of decimals
/// Target number
/// Number of decimals
/// Rounded value
public static double Round(this double target, int decimals = 1) =>
Math.Round(target, decimals);
}
}