GTK字串處理 String Utility Functions


String Utility Functions


g_ascii_strtod ()

Converts a string to a gdouble value. This function behaves like the standard strtod() function does in the C locale. It does this without actually changing the current locale, since that would not be thread-safe.

This function is typically used when reading configuration files or other non-user input that should be locale independent. To handle input from the user you should normally use the locale-sensitive system strtod() function.

To convert from a gdouble to a string in a locale-insensitive way, use g_ascii_dtostr().

If the correct value would cause overflow, plus or minus HUGE_VAL is returned (according to the sign of the value), and ERANGE is stored in errno. If the correct value would cause underflow, zero is returned and ERANGE is stored in errno.

This function resets errno before calling strtod() so that you can reliably detect overflow and underflow.

留言

Google Search

推薦內容橫式

本月熱門文章

蔣萬安歷年公開英文介紹台北市演說整理(2023–2026)

什麼是 OTA ?

裝修百科:裝潢修繕產業價格無法透明化的原因

如何在QNAP NAS 上使用 NVIDIA DIGITS ?

10/23|富邦悍將劉俊豪從自培選手到單場MVP 劉俊豪感謝天上的徐總

Android 11 / Android R 來了 快來看有哪些新功能

10/06 富邦悍將打出精彩好球 落後 追平 九局下半高國麟代打再見滿貫全壘打!

什麼是GSM ?

馬英九稱「武漢防疫是對人類的貢獻」 中國國民黨前主席變成中國共產黨傳聲筒?

[新鮮人找工作] 職場名詞解釋 AE FAE Pre-sales Post-sales

這個網誌中的熱門文章

Android應用開發豆知識:利用 adb 安裝 apk 到裝置上

【臉書無法登入】Facebook帳號卡安全檢查?無預警被停用與英文回報申訴教學

Android 中文輸入法 官方版 ! Gboard - Google 鍵盤 開始支援注音輸入啦

Google Play 推薦Android app 誠徵App排行榜

北京故宮首訪,一窺清宮秘史 大玉兒 & 甄嬛

[家教][社會觀察] 建中教我的事 沒上建中被父母親折磨? 在建中到底是如何 ...

[FAANG面試] Amazon/AWS 領導力準則 14 Amazon Leadership Principles

[品質控制] 什麼是Sanity test ? 軟體測試常見名詞整理 包含不同部門的測試人員負責範圍

Acer ICONIA Smart S300 更新後越來越好 Acer也有出手機?!

[新鮮人找工作] 職場名詞解釋 AE FAE Pre-sales Post-sales