Financial report context:
table 46 : allowance for loan and lease losses .

Financial table:
dollars in millions: january 1; 2013: $ 4036; 2012: $ 4347
dollars in millions: total net charge-offs; 2013: -1077 ( 1077 ); 2012: -1289 ( 1289 )
dollars in millions: provision for credit losses; 2013: 643; 2012: 987
dollars in millions: net change in allowance for unfunded loan commitments and letters of credit; 2013: 8; 2012: -10 ( 10 )
dollars in millions: other; 2013: -1 ( 1 ); 2012: 1
dollars in millions: december 31; 2013: $ 3609; 2012: $ 4036
dollars in millions: net charge-offs to average loans ( for the year ended ) ( a ); 2013: .57% ( .57 % ); 2012: .73% ( .73 % )
dollars in millions: allowance for loan and lease losses to total loans; 2013: 1.84; 2012: 2.17
dollars in millions: commercial lending net charge-offs; 2013: $ -249 ( 249 ); 2012: $ -359 ( 359 )
dollars in millions: consumer lending net charge-offs; 2013: -828 ( 828 ); 2012: -930 ( 930 )
dollars in millions: total net charge-offs; 2013: $ -1077 ( 1077 ); 2012: $ -1289 ( 1289 )
dollars in millions: net charge-offs to average loans ( for the year ended )
dollars in millions: commercial lending; 2013: .22% ( .22 % ); 2012: .35% ( .35 % )
dollars in millions: consumer lending ( a ); 2013: 1.07; 2012: 1.24

Additional report context:
( a ) includes charge-offs of $ 134 million taken pursuant to alignment with interagency guidance on practices for loans and lines of credit related to consumer lending in the first quarter of 2013 . the provision for credit losses totaled $ 643 million for 2013 compared to $ 987 million for 2012 . the primary driver of the decrease to the provision was improved overall credit quality , including improved commercial loan risk factors , lower consumer loan delinquencies and improvements in expected cash flows for our purchased impaired loans . for 2013 , the provision for commercial lending credit losses decreased by $ 102 million , or 74% ( 74 % ) , from 2012 . the provision for consumer lending credit losses decreased $ 242 million , or 29% ( 29 % ) , from 2012 . at december 31 , 2013 , total alll to total nonperforming loans was 117% ( 117 % ) . the comparable amount for december 31 , 2012 was 124% ( 124 % ) . these ratios are 72% ( 72 % ) and 79% ( 79 % ) , respectively , when excluding the $ 1.4 billion and $ 1.5 billion , respectively , of alll at december 31 , 2013 and december 31 , 2012 allocated to consumer loans and lines of credit not secured by residential real estate and purchased impaired loans . we have excluded consumer loans and lines of credit not secured by real estate as they are charged off after 120 to 180 days past due and not placed on nonperforming status . additionally , we have excluded purchased impaired loans as they are considered performing regardless of their delinquency status as interest is accreted based on our estimate of expected cash flows and additional allowance is recorded when these cash flows are below recorded investment . see table 35 within this credit risk management section for additional information . the alll balance increases or decreases across periods in relation to fluctuating risk factors , including asset quality trends , charge-offs and changes in aggregate portfolio balances . during 2013 , improving asset quality trends , including , but not limited to , delinquency status and improving economic conditions , realization of previously estimated losses through charge-offs , including the impact of alignment with interagency guidance and overall portfolio growth , combined to result in the alll balance declining $ .4 billion , or 11% ( 11 % ) to $ 3.6 billion as of december 31 , 2013 compared to december 31 , 2012 . see note 7 allowances for loan and lease losses and unfunded loan commitments and letters of credit and note 6 purchased loans in the notes to consolidated financial statements in item 8 of this report regarding changes in the alll and in the allowance for unfunded loan commitments and letters of credit . operational risk management operational risk is the risk of loss resulting from inadequate or failed internal processes or systems , human factors , or external events . this includes losses that may arise as a result of non- compliance with laws or regulations , failure to fulfill fiduciary responsibilities , as well as litigation or other legal actions . operational risk may occur in any of our business activities and manifests itself in various ways , including but not limited to : 2022 transaction processing errors , 2022 unauthorized transactions and fraud by employees or third parties , 2022 material disruption in business activities , 2022 system breaches and misuse of sensitive information , 2022 regulatory or governmental actions , fines or penalties , and 2022 significant legal expenses , judgments or settlements . pnc 2019s operational risk management is inclusive of technology risk management , compliance and business continuity risk . operational risk management focuses on balancing business needs , regulatory expectations and risk management priorities through an adaptive and proactive program that is designed to provide a strong governance model , sound and consistent risk management processes and transparent operational risk reporting across the enterprise . the pnc board determines the strategic approach to operational risk via establishment of the operational risk appetite and appropriate risk management structure . this includes establishment of risk metrics and limits and a reporting structure to identify , understand and manage operational risks . executive management has responsibility for operational risk management . the executive management team is responsible for monitoring significant risks , key controls and related issues through management reporting and a governance structure of risk committees and sub-committees . within risk management , operational risk management functions are responsible for developing and maintaining the 84 the pnc financial services group , inc . 2013 form 10-k .

Question: what was the percentage change in the provision for credit losses from 2012 to 2013
Answer: -34.9%