Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7741485
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T09:02:41+00:00 2026-06-01T09:02:41+00:00

If I change a field of mine from float to double, does that break

  • 0

If I change a field of mine from float to double, does that break backward compatibility in my format? It makes sense that it should, but in my test it didn’t.

On the other hand, I guess float and double have different wire-types, which can let protobuf-net handle the situation correctly and cast.

Are there docs anywhere that cover this sort of stuff?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-01T09:02:42+00:00Added an answer on June 1, 2026 at 9:02 am

    tl;dr; version: “that’s fine”

    At the wire level, this is the difference between – fixed 4-byte vs 8-byte encoding, so of you do this, future serializations will take a few extra bytes per value.

    In the case of protobuf-net, it is very forgiving by default – so this will not break your existing data. It tries to handle as many common / likely changes as it can, and this is handled fine. Other implementations may be more strict, so if you are using this for interop purposes I cannot make any statements about the “other end” (meaning: some other protobuf implementation). To help with this, there is also an optional / opt-in strict mode (disabled by default). If you have that enabled, then only the exact representation is allowed (so: 32-bit for float and 64-bit for double).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

There is a HttpModule that change Server field in Response Headers. But it does
Is it possible to change a field that's a string to an integer without
I'm having fun with a change to a content type field (from a node
I have a JTable that will have the last column data field change to
If I change a field in a Django model, how can I synchronize it
Is there any way to change the autonumber field to a number datatype, when
In a persistent object, If i change only one field, Is it possible to
How can I change the height of a field in the TFS process template
I can't change the value of the text field (with the id code) to
I can't seems to change the default color of the required field validator. In

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.