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"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","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,[]]