public sealed class RoundToScale : IMessage<RoundToScale>, IEquatable<RoundToScale>, IDeepCloneable<RoundToScale>, IBufferMessage, IMessage
Reference documentation and code samples for the Database Migration v1 API class RoundToScale.
This allows the data to change scale, for example if the source is 2 digits
after the decimal point, specify round to scale value = 2. If for example the
value needs to be converted to an integer, use round to scale value = 0.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eRoundToScale\u003c/code\u003e class in the Google Cloud Database Migration v1 API allows for adjusting the scale of data, such as rounding decimal places.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003eRoundToScale\u003c/code\u003e class is 2.5.0, with previous versions available from 2.4.0 down to 1.0.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eRoundToScale\u003c/code\u003e class implements interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e for data handling and comparison.\u003c/p\u003e\n"],["\u003cp\u003eYou can construct a new \u003ccode\u003eRoundToScale\u003c/code\u003e object, or you can create one using an existing \u003ccode\u003eRoundToScale\u003c/code\u003e object as a template.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eRoundToScale\u003c/code\u003e includes a \u003ccode\u003eScale\u003c/code\u003e property of type \u003ccode\u003eint\u003c/code\u003e, which determines the number of digits after the decimal point.\u003c/p\u003e\n"]]],[],null,["# Database Migration v1 API - Class RoundToScale (2.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.5.0 (latest)](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.RoundToScale)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.4.0/Google.Cloud.CloudDms.V1.RoundToScale)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.3.0/Google.Cloud.CloudDms.V1.RoundToScale)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.2.0/Google.Cloud.CloudDms.V1.RoundToScale)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.1.0/Google.Cloud.CloudDms.V1.RoundToScale)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/2.0.0/Google.Cloud.CloudDms.V1.RoundToScale)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/1.2.0/Google.Cloud.CloudDms.V1.RoundToScale)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/1.1.0/Google.Cloud.CloudDms.V1.RoundToScale)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/1.0.0/Google.Cloud.CloudDms.V1.RoundToScale) \n\n public sealed class RoundToScale : IMessage\u003cRoundToScale\u003e, IEquatable\u003cRoundToScale\u003e, IDeepCloneable\u003cRoundToScale\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Database Migration v1 API class RoundToScale.\n\nThis allows the data to change scale, for example if the source is 2 digits\nafter the decimal point, specify round to scale value = 2. If for example the\nvalue needs to be converted to an integer, use round to scale value = 0. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e RoundToScale \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[RoundToScale](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.RoundToScale), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[RoundToScale](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.RoundToScale), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[RoundToScale](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1.RoundToScale), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.CloudDms.V1](/dotnet/docs/reference/Google.Cloud.CloudDms.V1/latest/Google.Cloud.CloudDms.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.CloudDms.V1.dll\n\nConstructors\n------------\n\n### RoundToScale()\n\n public RoundToScale()\n\n### RoundToScale(RoundToScale)\n\n public RoundToScale(RoundToScale other)\n\nProperties\n----------\n\n### Scale\n\n public int Scale { get; set; }\n\nRequired. Scale value to be used"]]