Reference documentation and code samples for the Cloud Database Migration Service V1 API class Google::Cloud::CloudDMS::V1::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.
Inherits
Object
Extended By
Google::Protobuf::MessageExts::ClassMethods
Includes
Google::Protobuf::MessageExts
Methods
#scale
defscale()->::Integer
Returns
(::Integer) — Required. Scale value to be used
#scale=
defscale=(value)->::Integer
Parameter
value (::Integer) — Required. Scale value to be used
[[["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-09-09 UTC."],[],[],null,["# Cloud Database Migration Service V1 API - Class Google::Cloud::CloudDMS::V1::RoundToScale (v1.3.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.3.1 (latest)](/ruby/docs/reference/google-cloud-cloud_dms-v1/latest/Google-Cloud-CloudDMS-V1-RoundToScale)\n- [1.3.0](/ruby/docs/reference/google-cloud-cloud_dms-v1/1.3.0/Google-Cloud-CloudDMS-V1-RoundToScale)\n- [1.2.2](/ruby/docs/reference/google-cloud-cloud_dms-v1/1.2.2/Google-Cloud-CloudDMS-V1-RoundToScale)\n- [1.1.0](/ruby/docs/reference/google-cloud-cloud_dms-v1/1.1.0/Google-Cloud-CloudDMS-V1-RoundToScale)\n- [1.0.1](/ruby/docs/reference/google-cloud-cloud_dms-v1/1.0.1/Google-Cloud-CloudDMS-V1-RoundToScale)\n- [0.8.0](/ruby/docs/reference/google-cloud-cloud_dms-v1/0.8.0/Google-Cloud-CloudDMS-V1-RoundToScale)\n- [0.7.2](/ruby/docs/reference/google-cloud-cloud_dms-v1/0.7.2/Google-Cloud-CloudDMS-V1-RoundToScale)\n- [0.6.0](/ruby/docs/reference/google-cloud-cloud_dms-v1/0.6.0/Google-Cloud-CloudDMS-V1-RoundToScale)\n- [0.5.0](/ruby/docs/reference/google-cloud-cloud_dms-v1/0.5.0/Google-Cloud-CloudDMS-V1-RoundToScale)\n- [0.4.0](/ruby/docs/reference/google-cloud-cloud_dms-v1/0.4.0/Google-Cloud-CloudDMS-V1-RoundToScale)\n- [0.3.0](/ruby/docs/reference/google-cloud-cloud_dms-v1/0.3.0/Google-Cloud-CloudDMS-V1-RoundToScale)\n- [0.2.0](/ruby/docs/reference/google-cloud-cloud_dms-v1/0.2.0/Google-Cloud-CloudDMS-V1-RoundToScale)\n- [0.1.5](/ruby/docs/reference/google-cloud-cloud_dms-v1/0.1.5/Google-Cloud-CloudDMS-V1-RoundToScale) \nReference documentation and code samples for the Cloud Database Migration Service V1 API class Google::Cloud::CloudDMS::V1::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\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #scale\n\n def scale() -\u003e ::Integer\n\n**Returns**\n\n- (::Integer) --- Required. Scale value to be used\n\n### #scale=\n\n def scale=(value) -\u003e ::Integer\n\n**Parameter**\n\n- **value** (::Integer) --- Required. Scale value to be used \n**Returns**\n\n- (::Integer) --- Required. Scale value to be used"]]