how to unformat/unmask? #426
              
                Unanswered
              
          
                  
                    
                      laptopmutia
                    
                  
                
                  asked this question in
                Q&A
              
            Replies: 1 comment
-
| 
         There's a couple of different ways you can do this: If the value is still a currency value,  const c1 = currency(1234.56); 
console.log(c1.value); // => 1234.56
console.log(c1.intValue); // => 123456If the value has already been formatted, you can pass the formatted value into a currency object to get the numeric values: const c1 = currency('$1,234.56'); 
console.log(c1.value); // => 1234.56
console.log(c1.intValue); // => 123456 | 
  
Beta Was this translation helpful? Give feedback.
                  
                    0 replies
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
sometimes I want to get the integer value of a currency object
Beta Was this translation helpful? Give feedback.
All reactions