FFriZz

Sub-Super Script and Roman numerals Library

FFriZz 업데이트됨   
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)
릴리즈 노트:
v2
릴리즈 노트:
v3 commented out use case code for speed

파인 라이브러리

트레이딩뷰 정신에 따라 오써는 이 파인 코드를 오픈 소스 라이브러리로 퍼블리쉬하여 당사 커뮤니티의 다른 파인 프로그래머들이 쓸 수 있도록 하였습니다. 오써에게 찬사를! 여러분은 이 라이브러리를 프라이빗 또는 오픈 소스 퍼블리케이션에 쓸 수 있지만 퍼블리케이션에 재사용은 하우스룰을 따릅니다.

면책사항

이 정보와 게시물은 TradingView에서 제공하거나 보증하는 금융, 투자, 거래 또는 기타 유형의 조언이나 권고 사항을 의미하거나 구성하지 않습니다. 자세한 내용은 이용 약관을 참고하세요.

이 라이브러리를 쓰시겠습니까?

텍스트를 클립보드에 카피한 뒤 님의 스크립트에 붙여 넣기.