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 6670673
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:17:47+00:00 2026-05-26T03:17:47+00:00

I am migrating a mysql database to mongodb. But i have read in MongoDb

  • 0

I am migrating a mysql database to mongodb. But i have read in MongoDb data types and then there is no reference to floating point types like, float, double, decimal.

And how i have some fields with decimal types in my sql schema , how can i do or what can i do?

  • 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-05-26T03:17:48+00:00Added an answer on May 26, 2026 at 3:17 am

    MongoDB stores data in a binary format called BSON which supports these numeric data types:

    • int32 – 4 bytes (32-bit signed integer)
    • int64 – 8 bytes (64-bit signed integer)
    • double – 8 bytes (64-bit IEEE 754 floating point)

    There’s no exact value fixed-point equivalent to mySQL’s decimal type in MongoDB, but you can store 64-bit floating point numbers in Mongo as a double.

    It’s worth mentioning that the MongoDB shell – being a JavaScript shell – doesn’t recognise the distinction between integer and floating-point values, it treats all numbers the same because JavaScript represents all numbers as 64-bit floating point, regardless of their underlying BSON type.

    Most MongoDB language drivers, however, make the distinction between integer and floating point types.

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

Sidebar

Related Questions

I'd like to migrate an existing MySQL database (around 40tables, 400mb data) to Postgres
I have a MySQL database that I am migrating to SQL Server. The application
I'm migrating some data into MySQL and the dump from the other database has
Are there any free solutions for automatically migrating a database from MySQL to SQL
I'm migrating an Access Database to MySQL. Most of the program works well but
I was migrating mysql database to postgres and stumbled across the following block in
Migrating Data from MySQL server1 to MySQL server2 server1 Ver 14.12 Distrib 5.0.51a, for
I'm migrating data from a legacy database that has many tables with primary keys
Is there a way to use EntityFramework 4.3 beta with migrations with MySql database?
i am migrating from ms access database to mysql database with java frontend so

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.