FFriZz

Sub-Super Script and Roman numerals Library

FFriZz Zaktualizowano   
Library "Sub_Super_Script_and_RomanNumerals_Library"
Library to transform numbers into Roman numerals / Super-Sub script / check if value is alpha or number

isnumber(input)
  check to see if value is a number
  Parameters:
    input: (string/float/int) value to check
  Returns: (na) if value is NOT a number and input (string/float/int) if value is a number

isalpha(input)
  check a string if it is alpha(doesnt contain numbers)
  Parameters:
    input
  Returns: (string) if string input does NOT contain numbers, return (na) if input string contains numbers

super(num)
  convert a string's numbers from normal print to super-script
  Parameters:
    num: (string/int/float) input value to transform
  Returns: string of input with numbers converted to super-script

sub(num)
  convert a string's numbers from normal print to sub-script
  Parameters:
    num: (string/int/float) input value to transform
  Returns: string of input with numbers converted to sub-script

roman(num, trunc)
  convert a string of numbers, float, or int
  Parameters:
    num: (string) input number to transform
    trunc: (bool | false) true to truncate float value, false to show roman numerals with decimals (XX.VI)
  Returns: string of roman numerals representing the input (num)
Informacje o Wersji:
v2
Informacje o Wersji:
v3 commented out use case code for speed

Biblioteka Pine

Działając zgodnie z prawdziwym duchem TradingView, autor opublikował ten kod Pine jako bibliotekę o otwartym kodzie źródłowym, aby inni programiści Pine z naszej społeczności mogli go ponownie wykorzystać. Brawa dla niego! Możesz korzystać z tej biblioteki prywatnie lub w innych publikacjach typu open source, ale ponowne wykorzystanie tego kodu w publikacji podlega Regulaminowi.

Wyłączenie odpowiedzialności

Informacje i publikacje przygotowane przez TradingView lub jego użytkowników, prezentowane na tej stronie, nie stanowią rekomendacji ani porad handlowych, inwestycyjnych i finansowych i nie powinny być w ten sposób traktowane ani wykorzystywane. Więcej informacji na ten temat znajdziesz w naszym Regulaminie.

Chcesz skorzystać z tej biblioteki?

Skopiuj poniższy wiersz i wklej go w swoim skrypcie.