text
stringlengths 0
2.2M
|
---|
{ L_, 16384.f },
|
{ L_, 131072.f },
|
{ L_, 1048576.f },
|
{ L_, 16777216.f },
|
{ L_, 134217728.f },
|
{ L_, 1073741824.f },
|
{ L_, 17179869184.f },
|
{ L_, 137438953472.f },
|
{ L_, 1099511627776.f },
|
{ L_, 17592186044416.f },
|
{ L_, 140737488355328.f },
|
{ L_, 1125899906842624.f },
|
{ L_, 18014398509481984.f },
|
{ L_, 144115188075855870.f },
|
// Arbitrary Large and Small Number
|
{ L_, 1.234567e35f },
|
{ L_, -1.234567e35f },
|
{ L_, 1.234567e-35f },
|
{ L_, -1.234567e-35f },
|
// Small Integers
|
{ L_, 1234567.f },
|
{ L_, 12345678.f },
|
{ L_, 123456789.f },
|
// Full Mantissa Integers
|
{ L_, 1.0f * 0xFFFFFF },
|
{ L_, 1.0f * 0xFFFFFF * (1ull << 63) * (1ull << 41) },
|
// the above is 'bsl::numeric_limits<float>::max()'
|
// Boundary Values
|
{ L_, NumLimits::min() },
|
{ L_, NumLimits::max() },
|
{ L_, -NumLimits::min() },
|
{ L_, -NumLimits::max() },
|
};
|
printDecimalRoundTripTester(DATA);
|
}
|
if (verbose) cout << "\nTesting 'double'." << endl;
|
{
|
typedef bsl::numeric_limits<double> NumLimits;
|
static const RoundTripTestData<double> DATA[] =
|
{
|
//line input
|
//---- -------------------
|
{ L_, -1.0 },
|
{ L_, -0.1 },
|
{ L_, -0.123456789012345 },
|
{ L_, 0.0 },
|
{ L_, 0.1 },
|
{ L_, 1.0 },
|
{ L_, 123.4567 },
|
// Values from 'balxml_encoder.t.cpp' 'runTestCase17'
|
{ L_, 1.52587890625e-05 },
|
{ L_, 3.0517578125e-05 },
|
{ L_, 6.103515625e-05 },
|
{ L_, 1.220703125e-04 },
|
{ L_, 2.44140625e-04 },
|
{ L_, 4.8828125e-04 },
|
{ L_, 9.765625e-04 },
|
{ L_, 1.953125e-03 },
|
{ L_, 3.90625e-03 },
|
{ L_, 7.8125e-03 },
|
{ L_, 1.5625e-02 },
|
{ L_, 3.125e-02 },
|
{ L_, 6.25e-02 },
|
{ L_, 1.25e-01 },
|
{ L_, 2.5e-1 },
|
{ L_, 5e-1 },
|
{ L_, 1. },
|
{ L_, 8. },
|
{ L_, 64. },
|
{ L_, 128. },
|
{ L_, 1024. },
|
{ L_, 16384. },
|
{ L_, 131072. },
|
{ L_, 1048576. },
|
{ L_, 16777216. },
|
{ L_, 134217728. },
|
{ L_, 1073741824. },
|
{ L_, 17179869184. },
|
{ L_, 137438953472. },
|
{ L_, 1099511627776. },
|
{ L_, 17592186044416. },
|
{ L_, 140737488355328. },
|
{ L_, 1125899906842624. },
|
{ L_, 18014398509481984. },
|
{ L_, 144115188075855870. },
|
// Small Integers
|
{ L_, 123456789012345. },
|
{ L_, 1234567890123456. },
|
{ L_, 12345678901234567. },
|
{ L_, 123456789012345678. },
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.