~drizzle-trunk/drizzle/development

« back to all changes in this revision

Viewing changes to drizzled/decimal.cc

  • Committer: Brian Aker
  • Date: 2010-12-24 03:44:02 UTC
  • mfrom: (2015.1.3 timestamp)
  • mto: This revision was merged to the branch mainline in revision 2028.
  • Revision ID: brian@tangent.org-20101224034402-n1hpg1yxwjz59hpw
Finish up issues with unsigned/int by fixing cast().

Show diffs side-by-side

added added

removed removed

Lines of Context:
2533
2533
  return do_div_mod(from1, from2, 0, to, 0);
2534
2534
}
2535
2535
 
 
2536
std::ostream& operator<<(std::ostream& output, const my_decimal &dec)
 
2537
{
 
2538
  drizzled::String str;
 
2539
 
 
2540
  my_decimal2string(E_DEC_OK, &dec, 0, 20, ' ', &str);
 
2541
 
 
2542
  output << "my_decimal:(";
 
2543
  output <<  str.c_ptr();
 
2544
  output << ")";
 
2545
 
 
2546
  return output;  // for multiple << operators.
 
2547
}
 
2548
 
2536
2549
} /* namespace drizzled */
2537
2550
 
2538
2551
#ifdef MAIN
3266
3279
 
3267
3280
  return 0;
3268
3281
}
 
3282
 
3269
3283
#endif