OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:msdIndex
(Results
1 - 2
of
2
) sorted by null
/packages/apps/ExactCalculator/src/com/android/calculator2/
CalculatorResult.java
242
private void initPositions(int initPrecOffset, int
msdIndex
, int lsdOffset,
253
if (
msdIndex
== Evaluator.INVALID_MSD) {
270
if (
msdIndex
> wholeLen &&
msdIndex
<= wholeLen + 3) {
271
// Avoid tiny negative exponent; pretend
msdIndex
is just to the right of decimal point.
272
msdIndex
= wholeLen - 1;
274
int minCharOffset =
msdIndex
- wholeLen;
372
final int
msdIndex
= truncated ? -1 : getNaiveMsdIndexOf(in); // INVALID_MSD is OK.
380
if ((decIndex == -1 ||
msdIndex
!= Evaluator.INVALID_MSD
381
&&
msdIndex
- decIndex > MAX_LEADING_ZEROES + 1) && precOffset != -1)
[
all
...]
Evaluator.java
414
final int
msdIndex
= getMsdIndexOf(mResultString);
416
final int newInitPrecOffset = getPreferredPrec(mResultString,
msdIndex
, leastDigOffset);
423
mCalculator.onEvaluate(initPrecOffset,
msdIndex
, leastDigOffset, truncatedWholePart);
625
* @param
msdIndex
Index of most significant digit in cache, or INVALID_MSD.
629
private String getShortString(String cache, int
msdIndex
, int lsdOffset) {
640
if (
msdIndex
>= cache.length() - SHORT_TARGET_LENGTH) {
641
msdIndex
= INVALID_MSD;
643
if (
msdIndex
== INVALID_MSD) {
652
if (lsdOffset < -1 && dotIndex -
msdIndex
+ negative <= SHORT_TARGET_LENGTH
658
if (
msdIndex
> dotIndex)
[
all
...]
Completed in 750 milliseconds