hapharmonic

StringtoNumber

This library is used to convert Text type numbers are numbers.

Library "StringtoNumber"
str1 = '12340' , vv = numstrToNum(str1)

numstrToNum()


Example

// This source code is subject to the terms of the Mozilla Public License 2.0 at https://mozilla.org/MPL/2.0/
// © hapharmonic

//@version=5
indicator("My Script")
import hapharmonic/StringtoNumber/1 as CV

TF = '240'
GETTF = CV .numstrToNum(TF)
L = label.new(bar_index, high, '|| numstrToNum :>> || ' + str .tostring(GETTF), style=label.style_label_down,size=size.large)
label.delete(L)

💎🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸💎

🤖If you want access, then please send me a message with your request. Thank you!

💎🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸🔸💎
Pine Bibliothek

In true TradingView spirit, the author has published this Pine code as an open-source library so that other Pine programmers from our community can reuse it. Cheers to the author! You may use this library privately or in other open-source publications, but reuse of this code in a publication is governed by House Rules.

Möchten Sie diese Bibliothek nutzen?

Copy the following line and paste it in your script.