Cody

# Problem 2167. Negative Infinity

Solution 2182652

Submitted on 30 Mar 2020 by Jamal Nasir
This solution is locked. To view this solution, you need to provide a solution of the same size or smaller.

### Test Suite

Test Status Code Input and Output
1   Pass
a = [2.5 -1.7 5.6 8.4] y_correct = [ 2 -2 5 8]; assert(isequal(rounding(a),y_correct)) a = [ -105.25 78.89 -0.1 0.9 7.2]; y_correct = [ -106 78 -1 0 7]; assert(isequal(rounding(a),y_correct)) a = [ 265.25 88.99 -0.1 0.9 7.2] y_correct = [ 265 88 -1 0 7]; assert(isequal(rounding(a),y_correct))

a = 2.5000 -1.7000 5.6000 8.4000 a = 265.2500 88.9900 -0.1000 0.9000 7.2000
{"ft_lang_label":"__label__en","ft_lang_prob":0.52136576,"math_prob":0.99161965,"size":695,"snap":"2020-34-2020-40","text_gpt3_token_len":273,"char_repetition_ratio":0.13314037,"word_repetition_ratio":0.034188036,"special_character_ratio":0.48345324,"punctuation_ratio":0.18857142,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.9702843,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2020-08-06T08:21:17Z\",\"WARC-Record-ID\":\"<urn:uuid:c168dbe2-14cc-45c4-b5d2-0089d28b3d4a>\",\"Content-Length\":\"72130\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:00462f29-2892-4289-96b6-4ca6222c88d1>\",\"WARC-Concurrent-To\":\"<urn:uuid:344dd927-1df6-440c-b2f8-d02b2638d979>\",\"WARC-IP-Address\":\"23.10.129.243\",\"WARC-Target-URI\":\"https://la.mathworks.com/matlabcentral/cody/problems/2167-negative-infinity/solutions/2182652\",\"WARC-Payload-Digest\":\"sha1:MWWPKVCVOMUN443L4FKKY2Y3T2B2BE2A\",\"WARC-Block-Digest\":\"sha1:RWLL3XHMCGNUFWCHBB6XDZNWH2AJ7UGY\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2020/CC-MAIN-2020-34/CC-MAIN-2020-34_segments_1596439736883.40_warc_CC-MAIN-20200806061804-20200806091804-00264.warc.gz\"}"}