-
Notifications
You must be signed in to change notification settings - Fork 808
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1699 from fossasia/development
chore: merge development into master branch
- Loading branch information
Showing
61 changed files
with
769 additions
and
372 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
**Actual Behaviour** | ||
|
||
Please state here what is currently happening. | ||
<!-- Please state here what is currently happening. --> | ||
|
||
**Expected Behaviour** | ||
|
||
State here what the feature should enable the user to do. | ||
<!-- State here what the feature should enable the user to do. --> | ||
|
||
**Steps to reproduce it** | ||
|
||
Add steps to reproduce bugs or add information on the place where the feature should be implemented. Add links to a sample deployment or code. | ||
<!-- Add steps to reproduce bugs or add information on the place where the feature should be implemented. Add links to a sample deployment or code. --> | ||
|
||
**LogCat for the issue** | ||
|
||
Provide logs for the crash here | ||
<!-- Provide logs for the crash here --> | ||
|
||
**Screenshots of the issue** | ||
|
||
Where-ever possible add a screenshot of the issue. | ||
<!-- Where-ever possible add a screenshot of the issue. --> | ||
|
||
**Would you like to work on the issue?** | ||
|
||
Let us know if this issue should be assigned to you or tell us who you think could help to solve this issue. | ||
<!-- Let us know if this issue should be assigned to you or tell us who you think could help to solve this issue. --> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
package io.pslab; | ||
|
||
import java.text.DecimalFormatSymbols; | ||
import java.util.Locale; | ||
|
||
public class DataFormatter { | ||
public static final String HIGH_PRECISION_FORMAT = "%.5f"; | ||
public static final String MEDIUM_PRECISION_FORMAT = "%.4f"; | ||
public static final String LOW_PRECISION_FORMAT = "%.2f"; | ||
public static final String MINIMAL_PRECISION_FORMAT = "%.1f"; | ||
|
||
public static final char decSeparator = DecimalFormatSymbols.getInstance().getDecimalSeparator(); | ||
|
||
public static String formatDouble(double value, String format) { | ||
return String.format(Locale.getDefault(), format, value); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.