PINE LIBRARY

StringtoNumber

1124
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 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[1])

Clause de non-responsabilité

Les informations et les publications ne sont pas destinées à être, et ne constituent pas, des conseils ou des recommandations en matière de finance, d'investissement, de trading ou d'autres types de conseils fournis ou approuvés par TradingView. Pour en savoir plus, consultez les Conditions d'utilisation.