management 2019s discussion and analysis 138 jpmorgan chase & co./2013 annual report the credit derivatives used in credit portfolio management activities do not qualify for hedge accounting under u.s . gaap ; these derivatives are reported at fair value , with gains and losses recognized in principal transactions revenue . in contrast , the loans and lending-related commitments being risk-managed are accounted for on an accrual basis . this asymmetry in accounting treatment , between loans and lending-related commitments and the credit derivatives used in credit portfolio management activities , causes earnings volatility that is not representative , in the firm 2019s view , of the true changes in value of the firm 2019s overall credit exposure . the effectiveness of the firm 2019s credit default swap ( 201ccds 201d ) protection as a hedge of the firm 2019s exposures may vary depending on a number of factors , including the named reference entity ( i.e. , the firm may experience losses on specific exposures that are different than the named reference entities in the purchased cds ) , and the contractual terms of the cds ( which may have a defined credit event that does not align with an actual loss realized by the firm ) and the maturity of the firm 2019s cds protection ( which in some cases may be shorter than the firm 2019s exposures ) . however , the firm generally seeks to purchase credit protection with a maturity date that is the same or similar to the maturity date of the exposure for which the protection was purchased , and remaining differences in maturity are actively monitored and managed by the firm . credit portfolio hedges the following table sets out the fair value related to the firm 2019s credit derivatives used in credit portfolio management activities , the fair value related to the cva ( which reflects the credit quality of derivatives counterparty exposure ) , as well as certain other hedges used in the risk management of cva . these results can vary from period-to- period due to market conditions that affect specific positions in the portfolio . net gains and losses on credit portfolio hedges year ended december 31 , ( in millions ) 2013 2012 2011 hedges of loans and lending- related commitments $ ( 142 ) $ ( 163 ) $ ( 32 ) .

year ended december 31 ( in millions ) | 2013 | 2012 | 2011
----------|----------|----------|----------
hedges of loans and lending-related commitments | $ -142 ( 142 ) | $ -163 ( 163 ) | $ -32 ( 32 )
cva and hedges of cva | -130 ( 130 ) | 127 | -769 ( 769 )
net gains/ ( losses ) | $ -272 ( 272 ) | $ -36 ( 36 ) | $ -801 ( 801 )

community reinvestment act exposure the community reinvestment act ( 201ccra 201d ) encourages banks to meet the credit needs of borrowers in all segments of their communities , including neighborhoods with low or moderate incomes . the firm is a national leader in community development by providing loans , investments and community development services in communities across the united states . at december 31 , 2013 and 2012 , the firm 2019s cra loan portfolio was approximately $ 18 billion and $ 16 billion , respectively . at december 31 , 2013 and 2012 , 50% ( 50 % ) and 62% ( 62 % ) , respectively , of the cra portfolio were residential mortgage loans ; 26% ( 26 % ) and 13% ( 13 % ) , respectively , were commercial real estate loans ; 16% ( 16 % ) and 18% ( 18 % ) , respectively , were business banking loans ; and 8% ( 8 % ) and 7% ( 7 % ) , respectively , were other loans . cra nonaccrual loans were 3% ( 3 % ) and 4% ( 4 % ) , respectively , of the firm 2019s total nonaccrual loans . for the years ended december 31 , 2013 and 2012 , net charge-offs in the cra portfolio were 1% ( 1 % ) and 3% ( 3 % ) , respectively , of the firm 2019s net charge-offs in both years. .

Question: in 2013 what was the percent of the total hedges of loans and lending- related commitments that was cva and hedges of cva
Program: divide(130, 272)
Answer: 0.47794