Home
last modified time | relevance | path

Searched refs:decimal (Results 1 - 13 of 13) sorted by relevance

/base/update/updater/test/unittest/updater_test/
H A Dtest_update_binary_abnormal.cpp35 constexpr int decimal = 10; in main() local
42 int pipeFd = static_cast<int>(std::strtol(argv[1], nullptr, decimal)); in main()
H A Dtest_update_binary.cpp35 constexpr int decimal = 10; in main() local
42 int pipeFd = static_cast<int>(std::strtol(argv[1], nullptr, decimal)); in main()
/base/telephony/sms_mms/utils/
H A Dstring_utils.cpp41 const uint8_t decimal = 10; in HexCharToInt() local
46 return (c - 'A' + decimal); in HexCharToInt()
49 return (c - 'a' + decimal); in HexCharToInt()
/base/hiviewdfx/hiview/base/running_status_logger/
H A Drunning_status_logger.cpp116 int decimal = 10; in GetLogWroteDestFile() local
118 index *= decimal; in GetLogWroteDestFile()
127 return GenerateNewestFileName(std::string(((index < decimal) ? "_0" : "_")).append(std::to_string(index))); in GetLogWroteDestFile()
/base/hiviewdfx/hiview/base/
H A Devent.cpp54 const int decimal = 10; in GetIntValue() local
55 int32_t ret = static_cast<int32_t>(std::strtol(it->second.c_str(), nullptr, decimal)); in GetIntValue()
/base/location/services/location_gnss/gnss/source/
H A Dstring_utils.cpp43 const uint8_t decimal = 10; in HexCharToInt() local
48 return (c - 'A' + decimal); in HexCharToInt()
51 return (c - 'a' + decimal); in HexCharToInt()
/base/global/i18n_lite/frameworks/i18n/include/
H A Dnumber_data.h58 char *decimal = nullptr; member in OHOS::I18N::NumberData
H A Dnumber_format_impl.h49 void AddGroup(char *targetAndSource[], const int len[], const char *decimal, bool hasDec, int decLen) const;
/base/hiviewdfx/hicollie/frameworks/native/
H A Dxcollie_utils.cpp232 const int decimal = 10; in ParsePeerBinderPid() local
270 int serverNum = std::strtol(server.c_str(), nullptr, decimal); in ParsePeerBinderPid()
271 int clientNum = std::strtol(client.c_str(), nullptr, decimal); in ParsePeerBinderPid()
272 int waitNum = std::strtol(wait.c_str(), nullptr, decimal); in ParsePeerBinderPid()
/base/global/i18n_lite/frameworks/i18n/src/
H A Dnumber_format_impl.cpp30 off = ReplaceAndCountOff(strContent, i + off, data->decimal, off); in ConvertSignAndNum()
135 // convert decimal to char and format in InnerFormat()
280 void NumberFormatImpl::AddGroup(char *targetAndSource[], const int len[], const char *decimal, in AddGroup() argument
322 target[addIndex + j] = hasDec ? decimal[j] : '\0'; in AddGroup()
351 if (type == PERCENT) { // percent,the decimal needs to be multiplied by 100. in Format()
373 if (type == PERCENT) { // percent,the decimal needs to be multiplied by 100. in FormatNoGroup()
H A Dnumber_data.cpp86 std::string decSign = signs[0]; // use array to store num data, first is decimal sign in InitSign()
90 decimal = I18nNewCharString(td, strlen(td)); in InitSign()
114 for (int i = 0; i < len; i++) { // calculate the format after decimal sign in CalculateDecLength()
265 I18nFree(static_cast<void *>(decimal)); in ~NumberData()
338 // reset the style's number pattern which is used to format a decimal number in UpdateNumberFormat()
/base/update/packaging_tools/
H A Dscript_generator.py23 from decimal import getcontext
24 from decimal import Decimal
/base/hiviewdfx/hiview/plugins/unified_collector/storage/
H A Dcpu_storage.cpp98 double TruncateDecimalWithNBitPrecision(double decimal, uint32_t precision = DEFAULT_PRECISION_OF_DECIMAL) in TruncateDecimalWithNBitPrecision() argument
101 return std::floor(decimal * truncateCoefficient) / truncateCoefficient; in TruncateDecimalWithNBitPrecision()

Completed in 8 milliseconds