Changeset View
Changeset View
Standalone View
Standalone View
runners/calculator/qalculate_engine.cpp
Show First 20 Lines • Show All 107 Lines • ▼ Show 20 Line(s) | 83 | { | |||
---|---|---|---|---|---|
108 | PrintOptions po; | 108 | PrintOptions po; | ||
109 | po.number_fraction_format = FRACTION_DECIMAL; | 109 | po.number_fraction_format = FRACTION_DECIMAL; | ||
110 | po.indicate_infinite_series = false; | 110 | po.indicate_infinite_series = false; | ||
111 | po.use_all_prefixes = false; | 111 | po.use_all_prefixes = false; | ||
112 | po.use_denominator_prefix = true; | 112 | po.use_denominator_prefix = true; | ||
113 | po.negative_exponents = false; | 113 | po.negative_exponents = false; | ||
114 | po.lower_case_e = true; | 114 | po.lower_case_e = true; | ||
115 | po.base_display = BASE_DISPLAY_NORMAL; | 115 | po.base_display = BASE_DISPLAY_NORMAL; | ||
116 | #if defined(QALCULATE_MAJOR_VERSION) && defined(QALCULATE_MINOR_VERSION) && (QALCULATE_MAJOR_VERSION > 2 || (QALCULATE_MAJOR_VERSION == 2 && QALCULATE_MINOR_VERSION >= 2)) | ||||
117 | po.interval_display = INTERVAL_DISPLAY_SIGNIFICANT_DIGITS; | ||||
118 | #endif | ||||
116 | 119 | | |||
117 | result.format(po); | 120 | result.format(po); | ||
118 | 121 | | |||
119 | m_lastResult = result.print(po).c_str(); | 122 | m_lastResult = result.print(po).c_str(); | ||
120 | 123 | | |||
121 | if (isApproximate) { | 124 | if (isApproximate) { | ||
122 | *isApproximate = result.isApproximate(); | 125 | *isApproximate = result.isApproximate(); | ||
123 | } | 126 | } | ||
Show All 11 Lines |