Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

140
Views
mongoose value number to string format of digit 15 change to character e+15

i have a problem, when trying to create a new field in mongoose aggregate. when I try to convert a number to a string. where the number has digits 15 and above.

but the result of adding the string e+15

{
        $addFields: {
          stringCode: {$toString : "$number_code"}
        }
      },
      {
        $lookup: {
          from: "member",
          localField: "number_code", //string
          foreignField: "stringCode", // intiger to string
          as: "member",
        },
      }

the example number I'm trying to change is 123456789123456

and the result is "stringCode": "1.2345e+15"

I hope the result is "123456789123456"

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!