prg_string_to_double()

Abstract

Converts a string representing a double value to a double.

Syntax

prg_string_to_double (str, dval_ptr)
Argument Type Description
str const char * The string to be converted.
dval_ptr double * Area in which to store the converted double.

Return Type

PrgT_Compcode

PrgC_Compcode_Success if the conversion is successful; PrgC_Compcode_Failure otherwise.

prg_string_funcs.h

Details

This function removes spaces and the local thousands separator (such as comma) from str, then converts the resulting string, and sets dval_ptr to the double value or to one of the following symbolic constants:

  • VOSC_NA_DBL_INFINITY
  • VOSC_NA_DBL_NEG_INFINITY
  • VOSC_NA_DBL_DISABLED
  • VOSC_NA_DBL_UNSPEC
  • VOSC_NA_DBL_UNDEF
  • VOSC_NA_DBL_VECTOR_END

本站文档由 北京智网畅联科技有限公司 整理、翻译并提供 · Documentation compiled and provided by Beijing ZNetLink Technology Co., Ltd.

交流群 · QQ Group:OPNET/智网妙算网络仿真交流群(群号 486383494)

原文档 © 2017 Riverbed Technology · 本站为公益翻译,由 AI 辅助完成,请仔细甄别

Original documentation © 2017 Riverbed Technology. Community translation, AI-assisted. Contact: jiazequn@znetlink.com